Add opening symbols to clones of windows

The method execute must create the sshapes and vshapes objects. They must
1. exist in the cloned (parent) object (by calling the execute function)
2. and be copied to the clone object.
Then the SVG rendering in ArchSectionPlan can find it.
This commit is contained in:
Simon
2017-05-25 15:06:37 +02:00
committed by Yorik van Havre
parent c6e0c6aa80
commit c4b1685728

View File

@@ -697,6 +697,13 @@ class _Window(ArchComponent.Component):
def execute(self,obj):
if self.clone(obj):
clonedProxy = obj.CloneOf.Proxy
if not (hasattr(clonedProxy, "sshapes") and hasattr(clonedProxy, "vshapes")):
clonedProxy.execute(obj.CloneOf)
self.sshapes = clonedProxy.sshapes
self.vshapes = clonedProxy.vshapes
if hasattr(clonedProxy, "boxes"):
self.boxes = clonedProxy.boxes
return
import Part,DraftGeomUtils,math