Merge pull request #2531 from BigRoy/fix_maya_api_lib_namespaced

Maya: namespaced context go back to original namespace when started from inside a namespace
This commit is contained in:
Ondřej Samohel 2022-01-21 01:16:13 +01:00 committed by GitHub
commit 9a8d8db0c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -733,7 +733,7 @@ def namespaced(namespace, new=True):
str: The namespace that is used during the context
"""
original = cmds.namespaceInfo(cur=True)
original = cmds.namespaceInfo(cur=True, absoluteName=True)
if new:
namespace = avalon.maya.lib.unique_namespace(namespace)
cmds.namespace(add=namespace)