Move object materials panels further up and profile panel down

Object materials panel is much more important and shouldn't be below the material manager.
This commit is contained in:
Dion Moult
2024-05-26 10:04:17 +10:00
parent 80d31b4e1a
commit b9b0e81d25
3 changed files with 19 additions and 2 deletions
+2 -1
View File
@@ -154,9 +154,10 @@ classes = [
ui.BIM_PT_tab_representations,
ui.BIM_PT_tab_geometric_relationships,
ui.BIM_PT_tab_parametric_geometry,
ui.BIM_PT_tab_profiles,
ui.BIM_PT_tab_object_materials,
ui.BIM_PT_tab_materials,
ui.BIM_PT_tab_styles,
ui.BIM_PT_tab_profiles,
# Drawings and documents
ui.BIM_PT_tab_sheets,
ui.BIM_PT_tab_drawings,
@@ -122,7 +122,8 @@ class BIM_PT_object_material(Panel):
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "scene"
bl_parent_id = "BIM_PT_tab_materials"
bl_parent_id = "BIM_PT_tab_object_materials"
bl_options = {"HIDE_HEADER"}
@classmethod
def poll(cls, context):
+15
View File
@@ -741,6 +741,21 @@ class BIM_PT_tab_parametric_geometry(Panel):
pass
class BIM_PT_tab_object_materials(Panel):
bl_label = "Object Materials"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "scene"
bl_order = 1
@classmethod
def poll(cls, context):
return tool.Blender.is_tab(context, "GEOMETRY") and tool.Ifc.get()
def draw(self, context):
pass
class BIM_PT_tab_materials(Panel):
bl_label = "Materials"
bl_space_type = "PROPERTIES"