mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Fix fps fallback to project's value
This commit is contained in:
parent
84a13e4eb6
commit
3970229ce5
1 changed files with 4 additions and 0 deletions
|
|
@ -71,6 +71,10 @@ def update_op_assets(
|
|||
# Asset settings
|
||||
item_data["frameStart"] = item_data.get("frame_in")
|
||||
item_data["frameEnd"] = item_data.get("frame_out")
|
||||
# Sentinel for fps, fallback to project's value when entity fps is deleted
|
||||
if not item_data.get("fps") and item_doc["data"].get("fps"):
|
||||
project_doc = project_col.find_one({"type": "project"})
|
||||
item_data["fps"] = project_doc["data"]["fps"]
|
||||
|
||||
# Tasks
|
||||
tasks_list = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue