mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
inserted deepcopy of metadata to ensure unique data for all instances
This commit is contained in:
parent
8f22636b04
commit
e415b55030
1 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import pyblish.api
|
||||
import copy
|
||||
|
||||
|
||||
class CollectMindbenderImageSequences(pyblish.api.ContextPlugin):
|
||||
|
|
@ -44,11 +45,17 @@ class CollectMindbenderImageSequences(pyblish.api.ContextPlugin):
|
|||
raise Exception("%s was not published correctly "
|
||||
"(missing metadata)" % renderlayer)
|
||||
|
||||
metadat_instance = metadata['instance']
|
||||
# For now ensure this data is ignored
|
||||
for collection in collections:
|
||||
instance = context.create_instance(str(collection))
|
||||
self.log.info("Collection: %s" % list(collection))
|
||||
|
||||
data = dict(metadata["instance"], **{
|
||||
# Ensure each instance gets its own unique reference to
|
||||
# the source data
|
||||
instance_metadata = copy.deepcopy(metadat_instance)
|
||||
|
||||
data = dict(instance_metadata, **{
|
||||
"name": instance.name,
|
||||
"family": "Image Sequences",
|
||||
"families": ["colorbleed.imagesequence"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue