From 3bba14ea37130f6cb140379335923d28efba9cf7 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Fri, 23 Mar 2018 20:44:49 +0100 Subject: [PATCH 1/3] Fix typo (missing space) --- .../plugins/maya/publish/validate_node_ids_in_database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorbleed/plugins/maya/publish/validate_node_ids_in_database.py b/colorbleed/plugins/maya/publish/validate_node_ids_in_database.py index 73cba004bb..7d13cf021f 100644 --- a/colorbleed/plugins/maya/publish/validate_node_ids_in_database.py +++ b/colorbleed/plugins/maya/publish/validate_node_ids_in_database.py @@ -27,7 +27,7 @@ class ValidateNodeIdsInDatabase(pyblish.api.InstancePlugin): def process(self, instance): invalid = self.get_invalid(instance) if invalid: - raise RuntimeError("Found asset IDs which are not related to" + raise RuntimeError("Found asset IDs which are not related to " "current project in instance: " "`%s`" % instance.name) From f24a4d19078ccb1fdb8d275060fe8ec98745d460 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Fri, 23 Mar 2018 20:47:24 +0100 Subject: [PATCH 2/3] Fix `cmds.lockNode` raising error on empty nodes list --- colorbleed/maya/lib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/colorbleed/maya/lib.py b/colorbleed/maya/lib.py index d6df4fae52..86db5e6b7e 100644 --- a/colorbleed/maya/lib.py +++ b/colorbleed/maya/lib.py @@ -659,6 +659,8 @@ def get_id_required_nodes(referenced_nodes=False, nodes=None): nodes |= set(transforms) nodes -= ignore # Remove the ignored nodes + if not nodes: + return [] # Avoid locked nodes nodes_list = list(nodes) From f1b57f077cc5ec21f1f0248cd27c6890c8fd5d24 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Fri, 23 Mar 2018 20:54:33 +0100 Subject: [PATCH 3/3] Return the empty nodes set instead of list since return type is set --- colorbleed/maya/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorbleed/maya/lib.py b/colorbleed/maya/lib.py index 86db5e6b7e..93ede7fe58 100644 --- a/colorbleed/maya/lib.py +++ b/colorbleed/maya/lib.py @@ -660,7 +660,7 @@ def get_id_required_nodes(referenced_nodes=False, nodes=None): nodes -= ignore # Remove the ignored nodes if not nodes: - return [] + return nodes # Avoid locked nodes nodes_list = list(nodes)