Arch: Fixed missing views of windows
This commit is contained in:
parent
32b6d4af9c
commit
1324575b35
|
@ -311,6 +311,15 @@ def getGroupContents(objectslist,walls=False,addgroups=False):
|
||||||
is a group, its content is appened to the list, which is returned. If walls is True,
|
is a group, its content is appened to the list, which is returned. If walls is True,
|
||||||
walls are also scanned for included windows. If addgroups is true, the group itself
|
walls are also scanned for included windows. If addgroups is true, the group itself
|
||||||
is also included in the list.'''
|
is also included in the list.'''
|
||||||
|
def getWindows(obj):
|
||||||
|
l = []
|
||||||
|
if getType(obj) in ["Wall","Structure"]:
|
||||||
|
for o in obj.OutList:
|
||||||
|
l.extend(getWindows(o))
|
||||||
|
elif (getType(obj) == "Window") or isClone(obj,"Window"):
|
||||||
|
l.append(obj)
|
||||||
|
return l
|
||||||
|
|
||||||
newlist = []
|
newlist = []
|
||||||
if not isinstance(objectslist,list):
|
if not isinstance(objectslist,list):
|
||||||
objectslist = [objectslist]
|
objectslist = [objectslist]
|
||||||
|
@ -327,10 +336,8 @@ def getGroupContents(objectslist,walls=False,addgroups=False):
|
||||||
#print("adding ",obj.Name)
|
#print("adding ",obj.Name)
|
||||||
newlist.append(obj)
|
newlist.append(obj)
|
||||||
if walls:
|
if walls:
|
||||||
if getType(obj) in ["Wall","Structure"]:
|
newlist.extend(getWindows(obj))
|
||||||
for o in obj.OutList:
|
|
||||||
if (getType(o) == "Window") or isClone(o,"Window"):
|
|
||||||
newlist.append(o)
|
|
||||||
# cleaning possible duplicates
|
# cleaning possible duplicates
|
||||||
cleanlist = []
|
cleanlist = []
|
||||||
for obj in newlist:
|
for obj in newlist:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user