Merge pull request #10 from andrewgabler/main

Add debugging catch for phantom collections
pull/11/head^2
Torrin Leonard 2021-11-04 17:46:01 -04:00 zatwierdzone przez GitHub
commit d6ebf01c5c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -60,7 +60,6 @@ def returnData():
return collList
ignoreList = listSubIgnoreCollections()
print(ignoreList)
for i in bpy.data.collections:
if generateColors:
if i.name in colorList:
@ -199,7 +198,12 @@ def returnData():
'''
hierarchyByNum = []
for i in hierarchy:
hierarchyByNum.append(len(hierarchy[i]))
# Ignore Collections with nothing in them
if len(hierarchy[i]) != 0:
hierarchyByNum.append(len(hierarchy[i]))
else:
print("The following collection has been identified as empty:")
print(i)
combinations = 1
for i in hierarchyByNum:
combinations = combinations*i