mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Make georeferencing decorator use soft limits. Don't scale font.
This commit is contained in:
@@ -78,8 +78,7 @@ class GeoreferenceDecorator:
|
||||
self.addon_prefs = tool.Blender.get_addon_preferences()
|
||||
|
||||
self.font_id = 0
|
||||
font_size = tool.Blender.scale_font_size(12 + (self.scale / 20))
|
||||
blf.size(self.font_id, font_size)
|
||||
blf.size(self.font_id, 12)
|
||||
color = self.addon_prefs.decorations_colour
|
||||
blf.color(self.font_id, *color)
|
||||
blf.enable(self.font_id, blf.SHADOW)
|
||||
|
||||
@@ -206,7 +206,11 @@ class BIMGeoreferenceProperties(PropertyGroup):
|
||||
update=update_should_visualise,
|
||||
)
|
||||
visualization_scale: FloatProperty(
|
||||
name="Visualization Scale", description="Affects the georeference decorator size", default=1, min=0.1, max=50
|
||||
name="Visualization Scale",
|
||||
description="Affects the georeference decorator size",
|
||||
default=1,
|
||||
soft_min=0.1,
|
||||
soft_max=50,
|
||||
)
|
||||
grid_north_angle: StringProperty(name="Grid North Angle", update=update_grid_north_angle)
|
||||
x_axis_abscissa: StringProperty(name="X Axis Abscissa", update=update_grid_north_vector)
|
||||
|
||||
Reference in New Issue
Block a user