mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
separate task parent changes and value changes
This commit is contained in:
parent
143d1205ee
commit
a4e84611fe
1 changed files with 11 additions and 1 deletions
|
|
@ -121,11 +121,21 @@ class PushFrameValuesToTaskEvent(BaseEvent):
|
||||||
))
|
))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Separate value changes and task parent changes
|
||||||
|
_entities_info = []
|
||||||
|
task_parent_changes = []
|
||||||
|
for entity_info in entities_info:
|
||||||
|
if entity_info["entity_type"].lower() == "task":
|
||||||
|
task_parent_changes.append(entity_info)
|
||||||
|
else:
|
||||||
|
_entities_info.append(entity_info)
|
||||||
|
entities_info = _entities_info
|
||||||
|
|
||||||
# Filter entities info with changes
|
# Filter entities info with changes
|
||||||
interesting_data, changed_keys_by_object_id = self.filter_changes(
|
interesting_data, changed_keys_by_object_id = self.filter_changes(
|
||||||
session, event, entities_info, interest_attributes
|
session, event, entities_info, interest_attributes
|
||||||
)
|
)
|
||||||
if not interesting_data:
|
if not interesting_data and not task_parent_changes:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Prepare object types
|
# Prepare object types
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue