mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 07:09:22 +00:00
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:
@@ -1320,6 +1320,7 @@ class Model(blenderbim.core.tool.Model):
|
|||||||
ms2 = inherited_mstyle
|
ms2 = inherited_mstyle
|
||||||
|
|
||||||
cls.replace_material_style(mesh, obj, ms1, ms2)
|
cls.replace_material_style(mesh, obj, ms1, ms2)
|
||||||
|
tool.Geometry.record_object_materials(obj)
|
||||||
|
|
||||||
else: # Material unnassignment.
|
else: # Material unnassignment.
|
||||||
if not tool.Geometry.has_geometry_without_styles(mesh):
|
if not tool.Geometry.has_geometry_without_styles(mesh):
|
||||||
@@ -1330,6 +1331,7 @@ class Model(blenderbim.core.tool.Model):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
cls.replace_material_style(mesh, obj, None, inherited_mstyle)
|
cls.replace_material_style(mesh, obj, None, inherited_mstyle)
|
||||||
|
tool.Geometry.record_object_materials(obj)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_occurrences_without_material_override(
|
def get_occurrences_without_material_override(
|
||||||
|
|||||||
Reference in New Issue
Block a user