bonsai - fix breaking ui after style is removed

not sure when this one occurred but ui was breaking since ui blender items were still referring to the deleted ids
This commit is contained in:
Andrej730
2024-09-30 21:04:28 +05:00
parent f4165d4149
commit 55726b3d50
@@ -79,7 +79,7 @@ class RemoveStyle(bpy.types.Operator, tool.Ifc.Operator):
style: bpy.props.IntProperty()
def _execute(self, context):
core.remove_style(tool.Ifc, tool.Style, style=tool.Ifc.get().by_id(self.style))
core.remove_style(tool.Ifc, tool.Style, style=tool.Ifc.get().by_id(self.style), reload_styles_ui=True)
class AddStyle(bpy.types.Operator, tool.Ifc.Operator):