Load styles after removing surface style in RemoveSurfaceStyle operator so UI List is updated

This commit is contained in:
falken10vdl
2026-04-27 10:31:38 +02:00
parent 6d3bed1f7d
commit b5d36aacf6
@@ -1231,4 +1231,5 @@ class RemoveSurfaceStyle(bpy.types.Operator, tool.Ifc.Operator):
surface_style = tool.Style.get_style_elements(style)[props.is_editing_class]
ifcopenshell.api.style.remove_surface_style(ifc_file, surface_style)
core.disable_editing_style(tool.Style)
core.load_styles(tool.Style, style_type=props.style_type)
return {"FINISHED"}