From 11fbd15094bea4fde8f600c7c460fdcfb2b9a417 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Mon, 30 Oct 2017 12:53:21 +0100 Subject: [PATCH] Add comment and fix typo in variable --- colorbleed/plugins/publish/collect_imagesequences.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/colorbleed/plugins/publish/collect_imagesequences.py b/colorbleed/plugins/publish/collect_imagesequences.py index a20ecec781..3a1e95ce6b 100644 --- a/colorbleed/plugins/publish/collect_imagesequences.py +++ b/colorbleed/plugins/publish/collect_imagesequences.py @@ -16,6 +16,7 @@ class CollectMindbenderImageSequences(pyblish.api.ContextPlugin): # Force towards a single json sequence (override searching # the current working directory) + # TODO: This logic should be simplified USE_JSON = os.environ.get("USE_JSON", "") if USE_JSON: workspace = os.path.dirname(USE_JSON) @@ -54,7 +55,7 @@ class CollectMindbenderImageSequences(pyblish.api.ContextPlugin): raise Exception("%s was not published correctly " "(missing metadata)" % renderlayer) - metadat_instance = metadata['instance'] + metadata_instance = metadata['instance'] # For now ensure this data is ignored for collection in collections: instance = context.create_instance(str(collection)) @@ -62,7 +63,7 @@ class CollectMindbenderImageSequences(pyblish.api.ContextPlugin): # Ensure each instance gets its own unique reference to # the source data - instance_metadata = copy.deepcopy(metadat_instance) + instance_metadata = copy.deepcopy(metadata_instance) data = dict(instance_metadata, **{ "name": instance.name,