Mark thumbnails as outdated instead of updating them right away

As user may never open them in type manager
This commit is contained in:
Andrej730
2025-05-12 18:12:25 +05:00
parent 22b5db8a1e
commit be1836fa48
5 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -618,7 +618,7 @@ class FinishEditingDoor(bpy.types.Operator, tool.Ifc.Operator):
update_door_modifier_representation(obj)
element_type = ifcopenshell.util.element.get_type(element)
if element_type:
tool.Model.update_thumbnail_for_element(element_type, refresh=True)
tool.Model.mark_thumbnail_for_update(element_type)
pset = tool.Pset.get_element_pset(element, "BBIM_Door")
door_data = tool.Ifc.get().createIfcText(json.dumps(door_data, default=list))