mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 07:09:22 +00:00
Material manager panel now moved to geometry tab
This commit is contained in:
@@ -28,11 +28,11 @@ from blenderbim.bim.module.material.data import MaterialsData, ObjectMaterialDat
|
|||||||
class BIM_PT_materials(Panel):
|
class BIM_PT_materials(Panel):
|
||||||
bl_label = "Materials"
|
bl_label = "Materials"
|
||||||
bl_idname = "BIM_PT_materials"
|
bl_idname = "BIM_PT_materials"
|
||||||
bl_options = {"DEFAULT_CLOSED"}
|
|
||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "scene"
|
bl_context = "scene"
|
||||||
bl_parent_id = "BIM_PT_geometry"
|
bl_parent_id = "BIM_PT_tab_materials"
|
||||||
|
bl_options = {"HIDE_HEADER"}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
@@ -45,11 +45,10 @@ class BIM_PT_materials(Panel):
|
|||||||
self.props = context.scene.BIMMaterialProperties
|
self.props = context.scene.BIMMaterialProperties
|
||||||
|
|
||||||
row = self.layout.row(align=True)
|
row = self.layout.row(align=True)
|
||||||
row.label(text="{} Materials Found".format(MaterialsData.data["total_materials"]), icon="MATERIAL")
|
row.label(text="{} Materials".format(MaterialsData.data["total_materials"]), icon="NODE_MATERIAL")
|
||||||
if self.props.is_editing:
|
if self.props.is_editing:
|
||||||
row.operator("bim.disable_editing_materials", text="", icon="CANCEL")
|
row.operator("bim.disable_editing_materials", text="", icon="CANCEL")
|
||||||
else:
|
else:
|
||||||
row = self.layout.row(align=True)
|
|
||||||
prop_with_search(row, self.props, "material_type", text="")
|
prop_with_search(row, self.props, "material_type", text="")
|
||||||
row.operator("bim.load_materials", text="", icon="IMPORT")
|
row.operator("bim.load_materials", text="", icon="IMPORT")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user