mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Remove todo and extend the docstring to include the information
This commit is contained in:
parent
0387bc85aa
commit
e39e1afd8d
1 changed files with 4 additions and 4 deletions
|
|
@ -9,6 +9,9 @@ class ValidateNamespaceEmpty(pyblish.api.ContextPlugin):
|
|||
This is a scene wide validation that filters out "UI" and "shared"
|
||||
namespaces that exist by default in Maya and are mostly hidden.
|
||||
|
||||
A namespace that has other namespaces in it is not considered empty.
|
||||
Only those that have no children namespaces or nodes is considered emtpy.
|
||||
|
||||
"""
|
||||
|
||||
order = colorbleed.api.ValidateSceneOrder
|
||||
|
|
@ -19,7 +22,7 @@ class ValidateNamespaceEmpty(pyblish.api.ContextPlugin):
|
|||
label = "No Empty Namespaces"
|
||||
|
||||
def process(self, context):
|
||||
"""Process the Context"""
|
||||
|
||||
all_namespaces = cmds.namespaceInfo(":",
|
||||
listOnlyNamespaces=True,
|
||||
recurse=True)
|
||||
|
|
@ -27,9 +30,6 @@ class ValidateNamespaceEmpty(pyblish.api.ContextPlugin):
|
|||
if ns not in ["UI", "shared"]]
|
||||
|
||||
invalid = []
|
||||
# TODO: Check whether currently a namespace with
|
||||
# another namespace in it (both empty) is
|
||||
# considered empty
|
||||
for namespace in non_internal_namespaces:
|
||||
namespace_content = cmds.namespaceInfo(namespace,
|
||||
listNamespace=True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue