Update openpype/hosts/flame/api/utility_scripts/openpype_flame_to_ftrack/modules/ftrack_lib.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Roy Nieterau 2022-02-25 20:09:00 +01:00 committed by GitHub
parent e00e26d3eb
commit d72183e0a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,17 +139,7 @@ class FtrackComponentCreator:
if name == "ftrackreview-mp4":
duration = data["duration"]
handle_start = data.get("handleStart", None)
handle_end = data.get("handleEnd", None)
if handle_start is not None:
duration += handle_start
if handle_end is not None:
duration += handle_end
if handle_start is None and handle_end is None:
# Backwards compatibility; old style 'handles'
# We multiply by two because old-style handles defined
# both the handle start and handle end
duration += data.get("handles", 0) * 2
handles = data["handles"]
fps = data["fps"]
component_data["metadata"] = {