AE fix max instead of min

0 is minimum value, not preferred
This commit is contained in:
Petr Kalis 2021-04-21 11:45:27 +02:00
parent 0949c2c68a
commit c5ac2f1f3c

View file

@ -98,7 +98,7 @@ def get_asset_settings():
handle_end = asset_data.get("handleEnd")
resolution_width = asset_data.get("resolutionWidth")
resolution_height = asset_data.get("resolutionHeight")
duration = frame_end + handle_end - min(frame_start - handle_start, 0)
duration = frame_end + handle_end - max(frame_start - handle_start, 0)
entity_type = asset_data.get("entityType")
scene_data = {