record material checksum if styles were changed during material assignment

previously they wasn't recorded leading to the applying them to the representation items on save
This commit is contained in:
Andrej730
2024-06-24 16:03:11 +05:00
parent 8ac6f59394
commit 6d5d15793b
+2
View File
@@ -1320,6 +1320,7 @@ class Model(blenderbim.core.tool.Model):
ms2 = inherited_mstyle
cls.replace_material_style(mesh, obj, ms1, ms2)
tool.Geometry.record_object_materials(obj)
else: # Material unnassignment.
if not tool.Geometry.has_geometry_without_styles(mesh):
@@ -1330,6 +1331,7 @@ class Model(blenderbim.core.tool.Model):
continue
cls.replace_material_style(mesh, obj, None, inherited_mstyle)
tool.Geometry.record_object_materials(obj)
@classmethod
def get_occurrences_without_material_override(