don't consider material usages as overriding materials

All it does it removes the "Inherited Material Is Occurrence Overridden" label for material usages.
This commit is contained in:
Andrej730
2024-07-08 13:48:54 +05:00
parent 10b5910654
commit d996811306
@@ -355,4 +355,4 @@ class ObjectMaterialData:
# so we check occurrence material explicitly
element = tool.Ifc.get_entity(bpy.context.active_object)
occurrence_material = ifcopenshell.util.element.get_material(element, should_inherit=False)
return bool(occurrence_material)
return bool(occurrence_material) and "Usage" not in occurrence_material.is_a()