Blender Kitsu: Fix Frame Range Warning #126

Closed
Nick Alberelli wants to merge 6 commits from (deleted):fix/frame-range-warning into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 17 additions and 9 deletions
Showing only changes of commit 74bb94ed8f - Show all commits

View File

@ -84,13 +84,16 @@ class KITSU_PT_vi3d_context(bpy.types.Panel):
row = box.row(align=True)
row.label(text="Browser", icon="FILEBROWSER")
# Detect Context.
row.operator(
KITSU_OT_con_detect_context.bl_idname,
icon="FILE_REFRESH",
text="",
emboss=False,
)
if not context.scene.kitsu_error.kitsu_context:
ui.draw_error_no_kitsu_context(box)
else:
# Detect Context.
row.operator(
KITSU_OT_con_detect_context.bl_idname,
icon="FILE_REFRESH",
text="",
emboss=False,
)
# Category.
row = box.row(align=True)

View File

@ -51,9 +51,14 @@ def draw_error_frame_range_outdated(
box: bpy.types.UILayout,
) -> bpy.types.UILayout:
def draw_error_no_kitsu_context(
box: bpy.types.UILayout,
) -> bpy.types.UILayout:
row = box.row(align=True)
row.label(text="Frame Range Outdated")
row.operator("kitsu.pull_frame_range", icon="FILE_REFRESH")
row.alert = True
row.label(text="File's Kitsu Context not found", icon="ERROR")
row.operator("kitsu.con_detect_context", icon="FILE_REFRESH")
def draw_error_invalid_render_preset_dir(