Skip to content

Commit

Permalink
Add opening symbols to clones of windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
simsiem authored and yorikvanhavre committed May 27, 2017
1 parent c6e0c6a commit c4b1685
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Mod/Arch/ArchWindow.py
Expand Up @@ -697,6 +697,13 @@ def onChanged(self,obj,prop):
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
Expand Down

0 comments on commit c4b1685

Please sign in to comment.