Blender Kitsu: Add Frame Range Pop-up #128
@ -5,6 +5,7 @@ import contextlib
|
|||||||
|
|
||||||
from blender_kitsu import prefs, cache
|
from blender_kitsu import prefs, cache
|
||||||
from blender_kitsu.logger import LoggerFactory
|
from blender_kitsu.logger import LoggerFactory
|
||||||
|
|
||||||
logger = LoggerFactory.getLogger()
|
logger = LoggerFactory.getLogger()
|
||||||
|
|
||||||
|
|
||||||
@ -288,13 +289,14 @@ def check_frame_range(context) -> bool:
|
|||||||
If there's a mismatch, set kitsu_error.frame_range -> True. This will enable
|
If there's a mismatch, set kitsu_error.frame_range -> True. This will enable
|
||||||
a warning in the Animation Tools Tab UI.
|
a warning in the Animation Tools Tab UI.
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
frame_in, frame_out = get_frame_range()
|
frame_in, frame_out = get_frame_range()
|
||||||
frame_range_correct = bpy.context.scene.kitsu_error.frame_range
|
except TypeError:
|
||||||
|
return
|
||||||
|
scene = context.scene
|
||||||
|
frame_range_correct = scene.kitsu_error.frame_range
|
||||||
|
|
||||||
if (
|
if frame_in == scene.frame_start and frame_out == scene.frame_end:
|
||||||
frame_in == bpy.context.scene.frame_start
|
|
||||||
and frame_out == bpy.context.scene.frame_end
|
|
||||||
):
|
|
||||||
frame_range_correct = True
|
frame_range_correct = True
|
||||||
return frame_range_correct
|
return frame_range_correct
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user