mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Fixed bug with annotations update #3159
toggleDecorations was interrupted because it was trying to update text for non text element
This commit is contained in:
@@ -216,6 +216,9 @@ def toggleDecorations(self, context):
|
|||||||
# TODO: design a proper text variable templating renderer
|
# TODO: design a proper text variable templating renderer
|
||||||
collection = context.scene.camera.users_collection[0]
|
collection = context.scene.camera.users_collection[0]
|
||||||
for obj in collection.objects:
|
for obj in collection.objects:
|
||||||
|
element = tool.Ifc.get_entity(obj)
|
||||||
|
if not element or not tool.Drawing.is_annotation_object_type(element, ["TEXT", "TEXT_LEADER"]):
|
||||||
|
continue
|
||||||
tool.Drawing.update_text_value(obj)
|
tool.Drawing.update_text_value(obj)
|
||||||
refresh_drawing_data()
|
refresh_drawing_data()
|
||||||
decoration.DecorationsHandler.install(context)
|
decoration.DecorationsHandler.install(context)
|
||||||
|
|||||||
Reference in New Issue
Block a user