From afa73e3e3d4aaef3fb96bf25cd8d97ce498dab3f Mon Sep 17 00:00:00 2001 From: Swann Martinez Date: Wed, 24 Jan 2024 10:40:05 +0100 Subject: [PATCH] fix: pull edit for episodic workflow fix: pull shot starting on frame 0 --- scripts-blender/addons/blender_kitsu/sqe/ops.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts-blender/addons/blender_kitsu/sqe/ops.py b/scripts-blender/addons/blender_kitsu/sqe/ops.py index 6829e1b7..5ea384c3 100644 --- a/scripts-blender/addons/blender_kitsu/sqe/ops.py +++ b/scripts-blender/addons/blender_kitsu/sqe/ops.py @@ -1708,7 +1708,8 @@ class KITSU_OT_sqe_pull_edit(bpy.types.Operator): existing = [] channel = context.scene.kitsu.pull_edit_channel active_project = cache.project_active_get() - sequences = active_project.get_sequences_all() + active_episode = cache.episode_active_get() + sequences = active_episode.get_sequences_all() if active_episode else active_project.get_sequences_all() shot_strips = checksqe.get_shot_strips(context) occupied_ranges = checksqe.get_occupied_ranges(context) all_shots = active_project.get_shots_all() @@ -1744,11 +1745,11 @@ class KITSU_OT_sqe_pull_edit(bpy.types.Operator): continue # Get frame range information. - frame_start = shot.data["frame_in"] - frame_end = shot.data["frame_out"] + frame_start = shot.data.get("frame_in", None) + frame_end = shot.data.get("frame_out", None) # Continue if frame range information is missing. - if not frame_start or not frame_end: + if frame_start is None or frame_end is None: failed.append(shot) logger.error( "Failed to create shot %s. Missing frame range information", -- 2.30.2