mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Merge remote-tracking branch 'upstream/feature/new_publisher_proposals' into fusion_new_publish_transient_data
This commit is contained in:
commit
80336a7bb8
2 changed files with 6 additions and 6 deletions
|
|
@ -405,7 +405,7 @@ class CreatedInstance:
|
|||
self._members = []
|
||||
|
||||
# Data that can be used for lifetime of object
|
||||
self._lifetime_data = {}
|
||||
self._transient_data = {}
|
||||
|
||||
# Create a copy of passed data to avoid changing them on the fly
|
||||
data = copy.deepcopy(data or {})
|
||||
|
|
@ -600,7 +600,7 @@ class CreatedInstance:
|
|||
return self
|
||||
|
||||
@property
|
||||
def lifetime_data(self):
|
||||
def transient_data(self):
|
||||
"""Data stored for lifetime of instance object.
|
||||
|
||||
These data are not stored to scene and will be lost on object
|
||||
|
|
@ -617,7 +617,7 @@ class CreatedInstance:
|
|||
to instance for lifetime of instance object.
|
||||
"""
|
||||
|
||||
return self._lifetime_data
|
||||
return self._transient_data
|
||||
|
||||
def changes(self):
|
||||
"""Calculate and return changes."""
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class CollectFromCreateContext(pyblish.api.ContextPlugin):
|
|||
instance_data = created_instance.data_to_store()
|
||||
if instance_data["active"]:
|
||||
self.create_instance(
|
||||
context, instance_data, created_instance.lifetime_data
|
||||
context, instance_data, created_instance.transient_data
|
||||
)
|
||||
|
||||
# Update global data to context
|
||||
|
|
@ -39,7 +39,7 @@ class CollectFromCreateContext(pyblish.api.ContextPlugin):
|
|||
legacy_io.Session[key] = value
|
||||
os.environ[key] = value
|
||||
|
||||
def create_instance(self, context, in_data, lifetime_data):
|
||||
def create_instance(self, context, in_data, transient_data):
|
||||
subset = in_data["subset"]
|
||||
# If instance data already contain families then use it
|
||||
instance_families = in_data.get("families") or []
|
||||
|
|
@ -59,7 +59,7 @@ class CollectFromCreateContext(pyblish.api.ContextPlugin):
|
|||
if key not in instance.data:
|
||||
instance.data[key] = value
|
||||
|
||||
instance.data["lifetimeData"] = lifetime_data
|
||||
instance.data["transientData"] = transient_data
|
||||
|
||||
self.log.info("collected instance: {}".format(instance.data))
|
||||
self.log.info("parsing data: {}".format(in_data))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue