mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
deprecate Material.BIMMaterialProperties #4843
As it now stored just 1 property and it's now moved to the BIMStyleProperties.
This commit is contained in:
@@ -866,9 +866,9 @@ class TestAddReferenceImage(NewFile):
|
||||
|
||||
material = obj.active_material
|
||||
assert material.name == "image"
|
||||
assert material.BIMMaterialProperties.ifc_style_id != 0
|
||||
assert material.BIMStyleProperties.ifc_definition_id != 0
|
||||
|
||||
style = ifc_file.by_id(material.BIMMaterialProperties.ifc_style_id)
|
||||
style = ifc_file.by_id(material.BIMStyleProperties.ifc_definition_id)
|
||||
styled_items = set(tool.Style.get_styled_items(style))
|
||||
representation_items = set(tool.Geometry.get_active_representation(obj).Items)
|
||||
assert styled_items == representation_items
|
||||
|
||||
Reference in New Issue
Block a user