fix: skeleton loading error

This commit is contained in:
Swann
2019-09-17 17:23:57 +02:00
parent 3710b3ca14
commit 85f1db829b
4 changed files with 15 additions and 6 deletions

View File

@ -34,7 +34,7 @@ def get_users(datablock):
root = getattr(bpy.data,datatype.bl_name)
for item in root:
if hasattr(item, 'data') and datablock == item.data or \
hasattr(item, 'children') and datablock in item.children:
datatype.bl_name != 'collections' and hasattr(item, 'children') and datablock in item.children:
users.append(item)
return users