Arch: small bugfix in windows

This commit is contained in:
Yorik van Havre 2015-05-12 23:26:41 -03:00
parent c7c5171233
commit a6fad36ab6
2 changed files with 13 additions and 2 deletions

View File

@ -176,7 +176,7 @@ def makeWindowPreset(windowtype,width,height,h1,h2,h3,w1,w2,o1,o2,placement=None
if windowtype == "Fixed":
wp = outerFrame(s,width,height,h1,w1,o1)
wp.extend(["Glass","Glass panel","Wire1",str(w1/gla),str(w1/2)])
wp.extend(["Glass","Glass panel","Wire1",str(w1/gla),str(w1+w1/2)])
elif windowtype == "Open 1-pane":
wp = outerFrame(s,width,height,h1,w1,o1)
@ -811,6 +811,10 @@ class _ViewProviderWindow(ArchComponent.ViewProviderComponent):
def colorize(self,obj):
"setting different part colors"
if hasattr(obj,"CloneOf"):
if obj.CloneOf:
obj.ViewObject.DiffuseColor = obj.CloneOf.ViewObject.DiffuseColor
return
solids = obj.Shape.copy().Solids
#print "Colorizing ", solids
colors = []

View File

@ -597,7 +597,14 @@ def getMovableChildren(objectslist,recursive=False):
for child in children:
if hasattr(child,"MoveWithHost"):
if child.MoveWithHost:
added.append(child)
if hasattr(obj,"CloneOf"):
if obj.CloneOf:
if obj.CloneOf.Name != child.Name:
added.append(child)
else:
added.append(child)
else:
added.append(child)
if recursive:
added.extend(getMovableChildren(children))
return added