From 4d7cd373bcef0ffc4a853b8263d39f76ecae7522 Mon Sep 17 00:00:00 2001 From: krathjen Date: Sun, 21 Jan 2018 02:24:59 +0000 Subject: [PATCH] Fix the animation cleanup method when nested namespaces are used --- packages/mutils/animation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mutils/animation.py b/packages/mutils/animation.py index 70e06581..948aab43 100644 --- a/packages/mutils/animation.py +++ b/packages/mutils/animation.py @@ -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)