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 = box.row(align=True)
|
||||||
row.label(text="Browser", icon="FILEBROWSER")
|
row.label(text="Browser", icon="FILEBROWSER")
|
||||||
|
|
||||||
# Detect Context.
|
if not context.scene.kitsu_error.kitsu_context:
|
||||||
row.operator(
|
ui.draw_error_no_kitsu_context(box)
|
||||||
KITSU_OT_con_detect_context.bl_idname,
|
else:
|
||||||
icon="FILE_REFRESH",
|
# Detect Context.
|
||||||
text="",
|
row.operator(
|
||||||
emboss=False,
|
KITSU_OT_con_detect_context.bl_idname,
|
||||||
)
|
icon="FILE_REFRESH",
|
||||||
|
text="",
|
||||||
|
emboss=False,
|
||||||
|
)
|
||||||
|
|
||||||
# Category.
|
# Category.
|
||||||
row = box.row(align=True)
|
row = box.row(align=True)
|
||||||
|
@ -51,9 +51,14 @@ def draw_error_frame_range_outdated(
|
|||||||
box: bpy.types.UILayout,
|
box: bpy.types.UILayout,
|
||||||
) -> 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 = box.row(align=True)
|
||||||
row.label(text="Frame Range Outdated")
|
row.alert = True
|
||||||
row.operator("kitsu.pull_frame_range", icon="FILE_REFRESH")
|
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(
|
def draw_error_invalid_render_preset_dir(
|
||||||
|
Loading…
Reference in New Issue
Block a user