Merge pull request #3362 from BigRoy/maya_get_all_children_fix_2019_support

Maya: Fix collector Maya 2019 support
This commit is contained in:
Petr Kalis 2022-06-17 15:43:10 +02:00 committed by GitHub
commit b3f3149d32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,18 +28,19 @@ def get_all_children(nodes):
dag = sel.getDagPath(0)
iterator.reset(dag)
next(iterator) # ignore self
# ignore self
iterator.next() # noqa: B305
while not iterator.isDone():
path = iterator.fullPathName()
if path in traversed:
iterator.prune()
next(iterator)
iterator.next() # noqa: B305
continue
traversed.add(path)
next(iterator)
iterator.next() # noqa: B305
return list(traversed)