Blender Kitsu: Use new Kitsu Context UI in Multi Edit / Metadata #280
@ -105,6 +105,11 @@ class KITSU_PT_sqe_shot_tools(bpy.types.Panel):
|
||||
return bool(prefs.session_auth(context) or (sqe and sqe.sequences_all))
|
||||
|
||||
def draw(self, context: bpy.types.Context) -> None:
|
||||
active_project = cache.project_active_get()
|
||||
if active_project.production_type == bkglobals.KITSU_TV_PROJECT:
|
||||
if not cache.episode_active_get():
|
||||
self.layout.label(text="Please Set Active Episode", icon="ERROR")
|
||||
return
|
||||
if self.poll_error(context):
|
||||
self.draw_error(context)
|
||||
|
||||
@ -362,7 +367,6 @@ class KITSU_PT_sqe_shot_tools(bpy.types.Panel):
|
||||
"""
|
||||
|
||||
addon_prefs = prefs.addon_prefs_get(context)
|
||||
active_project = cache.project_active_get()
|
||||
|
||||
nr_of_shots = len(context.selected_sequences)
|
||||
noun = get_selshots_noun(nr_of_shots)
|
||||
@ -372,11 +376,6 @@ class KITSU_PT_sqe_shot_tools(bpy.types.Panel):
|
||||
box = layout.box()
|
||||
box.label(text="Multi Edit", icon="PROPERTIES")
|
||||
|
||||
if active_project.production_type == bkglobals.KITSU_TV_PROJECT:
|
||||
if not cache.episode_active_get():
|
||||
box.label(text="Please Set Active Episode", icon="ERROR")
|
||||
return
|
||||
|
||||
# Sequence
|
||||
col = box.column()
|
||||
sub_row = col.row(align=True)
|
||||
|
Loading…
Reference in New Issue
Block a user