mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
integrate_new store subset and version entity to instance.data
This commit is contained in:
parent
1ac0961f3a
commit
a364b90ae3
2 changed files with 4 additions and 8 deletions
|
|
@ -61,13 +61,10 @@ class IntegrateMasterVersion(pyblish.api.InstancePlugin):
|
|||
|
||||
master_publish_dir = self.get_publish_dir(instance)
|
||||
|
||||
src_version_entity = None
|
||||
src_version_entity = instance.data.get("versionEntity")
|
||||
filtered_repre_ids = []
|
||||
for repre_id, repre_info in published_repres.items():
|
||||
repre = repre_info["representation"]
|
||||
if src_version_entity is None:
|
||||
src_version_entity = repre_info.get("version_entity")
|
||||
|
||||
if repre["name"].lower() in self.ignored_representation_names:
|
||||
self.log.debug(
|
||||
"Filtering representation with name: `{}`".format(
|
||||
|
|
|
|||
|
|
@ -162,6 +162,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
)
|
||||
|
||||
subset = self.get_subset(asset_entity, instance)
|
||||
instance.data["subsetEntity"] = subset
|
||||
|
||||
version_number = instance.data["version"]
|
||||
self.log.debug("Next version: v{}".format(version_number))
|
||||
|
|
@ -237,6 +238,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
)
|
||||
|
||||
version = io.find_one({"_id": version_id})
|
||||
instance.data["versionEntity"] = version
|
||||
|
||||
existing_repres = list(io.find({
|
||||
"parent": version_id,
|
||||
|
|
@ -463,10 +465,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
published_representations[repre_id] = {
|
||||
"representation": representation,
|
||||
"anatomy_data": template_data,
|
||||
"published_files": published_files,
|
||||
# TODO prabably should store subset and version to instance
|
||||
"subset_entity": subset,
|
||||
"version_entity": version
|
||||
"published_files": published_files
|
||||
}
|
||||
self.log.debug("__ representations: {}".format(representations))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue