Blender Kitsu: Use new Kitsu Context UI in Multi Edit / Metadata #280

Merged
Nick Alberelli merged 11 commits from TinyNick/blender-studio-pipeline:fix/blender-kitsu-multi-edit into main 2024-04-08 17:51:04 +02:00
Showing only changes of commit e88d2717c7 - Show all commits

View File

@ -647,10 +647,12 @@ class KITSU_OT_sqe_multi_edit_strip(bpy.types.Operator):
# and they all have the same sequence name.
sel_shots = context.selected_sequences
if not sel_shots:
cls.poll_message_set("No sequences are selected")
return False
nr_of_shots = len(sel_shots)
if nr_of_shots < 1:
cls.poll_message_set("Please more than one sequence")
return False
seq_name = sel_shots[0].kitsu.sequence_name
@ -660,8 +662,14 @@ class KITSU_OT_sqe_multi_edit_strip(bpy.types.Operator):
or not s.kitsu.initialized
or not checkstrip.is_valid_type(s)
):
cls.poll_message_set(
"Please select unlinked, initialized strips, of either MOVIE or COLOR type"
)
return False
if s.kitsu.sequence_name != seq_name:
cls.poll_message_set(
"Strips have conflicting sequence names. Please select strips with the same sequence name, or no sequence"
)
return False
return True