mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
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:
commit
9a8d8db0c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue