mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
unarchivation override data and not update and return new entity
This commit is contained in:
parent
d8226f1d27
commit
350221e3e0
1 changed files with 2 additions and 4 deletions
|
|
@ -117,10 +117,7 @@ class ExtractHierarchyToAvalon(pyblish.api.ContextPlugin):
|
|||
self.import_to_avalon(entity_data["childs"], entity)
|
||||
|
||||
def unarchive_entity(self, entity, data):
|
||||
entity_data = entity.get("data") or {}
|
||||
entity_data.update(data)
|
||||
data = entity_data
|
||||
|
||||
# Unarchived asset should not use same data
|
||||
new_entity = {
|
||||
"_id": entity["_id"],
|
||||
"schema": "avalon-core:asset-3.0",
|
||||
|
|
@ -133,6 +130,7 @@ class ExtractHierarchyToAvalon(pyblish.api.ContextPlugin):
|
|||
{"_id": entity["_id"]},
|
||||
new_entity
|
||||
)
|
||||
return new_entity
|
||||
|
||||
def create_avalon_asset(self, name, data):
|
||||
item = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue