mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Fix #5177. Refresh georeferencing viz data after data purged.
This commit is contained in:
@@ -59,6 +59,9 @@ class GeoreferenceDecorator:
|
|||||||
batch.draw(shader)
|
batch.draw(shader)
|
||||||
|
|
||||||
def draw_text(self, context):
|
def draw_text(self, context):
|
||||||
|
if not GeoreferenceData.is_loaded:
|
||||||
|
GeoreferenceData.load()
|
||||||
|
|
||||||
self.calculate_angles(context)
|
self.calculate_angles(context)
|
||||||
props = context.scene.BIMGeoreferenceProperties
|
props = context.scene.BIMGeoreferenceProperties
|
||||||
e, n, h = [round(float(o), 7) for o in props.model_origin.split(",")]
|
e, n, h = [round(float(o), 7) for o in props.model_origin.split(",")]
|
||||||
@@ -164,6 +167,9 @@ class GeoreferenceDecorator:
|
|||||||
blf.draw(self.font_id, line)
|
blf.draw(self.font_id, line)
|
||||||
|
|
||||||
def draw_geometry(self, context):
|
def draw_geometry(self, context):
|
||||||
|
if not GeoreferenceData.is_loaded:
|
||||||
|
GeoreferenceData.load()
|
||||||
|
|
||||||
self.calculate_angles(context)
|
self.calculate_angles(context)
|
||||||
|
|
||||||
self.addon_prefs = tool.Blender.get_addon_preferences()
|
self.addon_prefs = tool.Blender.get_addon_preferences()
|
||||||
|
|||||||
Reference in New Issue
Block a user