remove unnecessary second style reload when disabling style editing

This commit is contained in:
Andrej730
2024-10-16 15:07:12 +05:00
parent e29f8ce18a
commit e9e89c1280
-2
View File
@@ -145,8 +145,6 @@ def enable_editing_style(style_tool: tool.Style, style: ifcopenshell.entity_inst
def disable_editing_style(style: tool.Style) -> None:
obj = style.get_currently_edited_material()
# TODO: is reloading twice necessary?
style.reload_material_from_ifc(obj)
style.disable_editing()
style.reload_material_from_ifc(obj)