Blender Kitsu: Fix Frame Range Warning #126
@ -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)
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user