mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 15:26:33 +00:00
Fix bim.update_representation not apply scales if object wasn't moved
Was also creating same issue when project was saved
This commit is contained in:
@@ -442,7 +442,7 @@ class UpdateRepresentation(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
ifcopenshell.api.run("boundary.assign_connection_geometry", tool.Ifc.get(), **settings)
|
ifcopenshell.api.run("boundary.assign_connection_geometry", tool.Ifc.get(), **settings)
|
||||||
return
|
return
|
||||||
|
|
||||||
if tool.Ifc.is_moved(obj):
|
if tool.Ifc.is_moved(obj) or tool.Geometry.is_scaled(obj):
|
||||||
core.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj=obj)
|
core.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj=obj)
|
||||||
|
|
||||||
if material and material.is_a() in ["IfcMaterialProfileSet", "IfcMaterialLayerSet"]:
|
if material and material.is_a() in ["IfcMaterialProfileSet", "IfcMaterialLayerSet"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user