Fix #2418. Object materials are now found in the materials tab.

This commit is contained in:
Dion Moult
2023-03-10 15:37:21 +11:00
parent c532b90c92
commit 7666463751
2 changed files with 2 additions and 3 deletions
@@ -56,8 +56,8 @@ classes = (
prop.BIMMaterialProperties, prop.BIMMaterialProperties,
prop.BIMObjectMaterialProperties, prop.BIMObjectMaterialProperties,
ui.BIM_PT_materials, ui.BIM_PT_materials,
ui.BIM_PT_material,
ui.BIM_PT_object_material, ui.BIM_PT_object_material,
ui.BIM_PT_material,
ui.BIM_UL_materials, ui.BIM_UL_materials,
) )
@@ -103,8 +103,7 @@ class BIM_PT_object_material(Panel):
bl_idname = "BIM_PT_object_material" bl_idname = "BIM_PT_object_material"
bl_space_type = "PROPERTIES" bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW" bl_region_type = "WINDOW"
bl_context = "object" bl_context = "material"
bl_parent_id = "BIM_PT_object_metadata"
@classmethod @classmethod
def poll(cls, context): def poll(cls, context):