Skip to content

Commit

Permalink
Fix the animation cleanup method when nested namespaces are used
Browse files Browse the repository at this point in the history
  • Loading branch information
krathjen committed Jan 23, 2018
1 parent f42a340 commit 4d7cd37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mutils/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def close(self):
Clean up all imported nodes, as well as the namespace.
Should be called in a finally block.
"""
nodes = maya.cmds.ls(Animation.IMPORT_NAMESPACE + ":*") or []
nodes = maya.cmds.ls(Animation.IMPORT_NAMESPACE + ":*", r=True) or []
if nodes:
maya.cmds.delete(nodes)

Expand Down

0 comments on commit 4d7cd37

Please sign in to comment.