Skip to content

Commit

Permalink
Arch: small bugfix in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jan 5, 2014
1 parent 1820a56 commit 3648912
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/Mod/Arch/ArchWindow.py
Expand Up @@ -57,16 +57,17 @@ def makeWindow(baseobj=None,width=None,height=None,parts=None,name=str(translate
if parts:
obj.WindowParts = parts
else:
if obj.isDerivedFrom("Part::Feature"):
if obj.Shape.Wires:
i = 0
ws = ''
for w in obj.Shape.Wires:
if w.isClosed():
if ws: ws += ","
ws += "Wire" + str(i)
i += 1
obj.WindowParts = ["Default","Frame",ws,"1","0"]
if baseobj:
if baseobj.isDerivedFrom("Part::Feature"):
if baseobj.Shape.Wires:
i = 0
ws = ''
for w in baseobj.Shape.Wires:
if w.isClosed():
if ws: ws += ","
ws += "Wire" + str(i)
i += 1
obj.WindowParts = ["Default","Frame",ws,"1","0"]
if obj.Base:
obj.Base.ViewObject.DisplayMode = "Wireframe"
obj.Base.ViewObject.hide()
Expand Down

0 comments on commit 3648912

Please sign in to comment.