bim.override_mesh_separate - use operator_enum, hide Blender Separate

as it's now integrated in IFC separate and using Blender Separate for ifc elements is not safe
This commit is contained in:
Andrej730
2025-04-22 17:22:29 +05:00
parent 0b22333b69
commit 5c63cd7981
+6 -11
View File
@@ -76,25 +76,20 @@ class BIM_MT_separate(Menu):
bl_label = "IFC Separate"
def draw(self, context):
self.layout.operator("bim.override_mesh_separate", icon="PLUGIN", text="IFC Selection").type = "SELECTED"
self.layout.operator("bim.override_mesh_separate", icon="PLUGIN", text="IFC By Material").type = "MATERIAL"
self.layout.operator("bim.override_mesh_separate", icon="PLUGIN", text="IFC By Loose Parts").type = "LOOSE"
assert self.layout
self.layout.label(text="IFC Separate", icon_value=bonsai.bim.icons["IFC"].icon_id)
self.layout.operator_enum("bim.override_mesh_separate", "type")
# TODO: remove as it's the same as BIM_MT_separate?
class BIM_MT_hotkey_separate(Menu):
bl_idname = "BIM_MT_hotkey_separate"
bl_label = "Separate"
def draw(self, context):
assert self.layout
self.layout.label(text="IFC Separate", icon_value=bonsai.bim.icons["IFC"].icon_id)
self.layout.operator("bim.override_mesh_separate", text="Selection").type = "SELECTED"
self.layout.operator("bim.override_mesh_separate", text="By Material").type = "MATERIAL"
self.layout.operator("bim.override_mesh_separate", text="By Loose Parts").type = "LOOSE"
self.layout.separator()
self.layout.label(text="Blender Separate", icon="BLENDER")
self.layout.operator("mesh.separate", text="Selection").type = "SELECTED"
self.layout.operator("mesh.separate", text="By Material").type = "MATERIAL"
self.layout.operator("mesh.separate", text="By Loose Parts").type = "LOOSE"
self.layout.operator_enum("bim.override_mesh_separate", "type")
class BIM_MT_object_set_origin(Menu):