Swapping a Blender material for another is now auto synchronised.

This commit is contained in:
Dion Moult
2021-11-11 18:21:02 +11:00
parent 6f55cd5169
commit 2ec3c4c06b
11 changed files with 59 additions and 5 deletions
@@ -224,6 +224,10 @@ class Geometry(blenderbim.core.tool.Geometry):
def link(cls, element, obj):
obj.BIMMeshProperties.ifc_definition_id = element.id()
@classmethod
def record_object_materials(cls, obj):
obj.data.BIMMeshProperties.material_checksum = str([s.id() for s in cls.get_styles(obj) if s])
@classmethod
def record_object_position(cls, obj):
# These are recorded separately because they have different numerical tolerances