Copy subvolume before changing its Placement

Placement property of a cached object was modified each time
component is recalculated.

Fixes #22162.
This commit is contained in:
Zbyněk Winkler
2025-06-25 15:31:36 +02:00
committed by Yorik van Havre
parent 9156ac3e27
commit 7fcfef5972

View File

@@ -782,7 +782,7 @@ class Component(ArchIFC.IfcProduct):
subvolume = o.getLinkedObject().Proxy.getSubVolume(o,host=obj) # pass host obj (mostly Wall)
elif (Draft.getType(o) == "Roof") or (Draft.isClone(o,"Roof")):
# roofs define their own special subtraction volume
subvolume = o.Proxy.getSubVolume(o)
subvolume = o.Proxy.getSubVolume(o).copy()
elif hasattr(o,"Subvolume") and hasattr(o.Subvolume,"Shape"):
# Any other object with a Subvolume property
## TODO - Part.Shape() instead?