From e9e89c1280c4a63805915c4ea2c6c9235619d63c Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 16 Oct 2024 15:07:12 +0500 Subject: [PATCH] remove unnecessary second style reload when disabling style editing --- src/bonsai/bonsai/core/style.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bonsai/bonsai/core/style.py b/src/bonsai/bonsai/core/style.py index 6c221735fa..f86e6b9aa6 100644 --- a/src/bonsai/bonsai/core/style.py +++ b/src/bonsai/bonsai/core/style.py @@ -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)