Fixed cross-reference bug in Arch windows

This commit is contained in:
Yorik van Havre 2012-04-04 12:49:36 -03:00
parent 238750d3e4
commit e3a648ea03

View File

@ -73,6 +73,17 @@ def removeComponents(objectsList,host=None):
for o in objectsList:
if not o in s:
s.append(o)
if Draft.getType(o) == "Window":
# fix for sketch-based windows
if o.Base:
if o.Base.Support:
if isinstance(o.Base.Support,tuple):
if o.Base.Support[0].Name == host.Name:
print "removing sketch support to avoid cross-referencing"
o.Base.Support = None
elif o.Base.Support.Name == host.Name:
print "removing sketch support to avoid cross-referencing"
o.Base.Support = None
host.Subtractions = s
else:
for o in objectsList: