mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
use precached values
This commit is contained in:
parent
df12e9a112
commit
236ad65617
1 changed files with 7 additions and 3 deletions
|
|
@ -1259,13 +1259,17 @@ class SyncToAvalonEvent(BaseEvent):
|
|||
output[key] = entity["custom_attributes"][key]
|
||||
|
||||
hier_values = avalon_sync.get_hierarchical_attributes_values(
|
||||
self.process_session, entity, hier_attrs
|
||||
self.process_session,
|
||||
entity,
|
||||
hier_attrs,
|
||||
self.cust_attr_types_by_id
|
||||
)
|
||||
for key, val in hier_values.items():
|
||||
if key == CUST_ATTR_ID_KEY:
|
||||
continue
|
||||
output[key] = val
|
||||
|
||||
# Make sure mongo id is not set
|
||||
output.pop(CUST_ATTR_ID_KEY, None)
|
||||
|
||||
return output
|
||||
|
||||
def process_renamed(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue