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 2 additions and 8 deletions
Showing only changes of commit cd855672b8 - Show all commits

View File

@ -295,7 +295,6 @@ class KITSU_property_group_window_manager(bpy.types.PropertyGroup):
def _add_window_manager_props():
# Multi Edit Properties.
bpy.types.WindowManager.show_advanced = bpy.props.BoolProperty(
name="Show Advanced",
@ -376,9 +375,7 @@ def _calc_kitsu_frame_start(self):
Calculates strip.kitsu_frame_start, little hack because it seems like we cant access the strip from a property group
But we need acess to seqeuence properties.
"""
kitsu_frame_start = (
bkglobals.FRAME_START - self.kitsu.frame_start_offset
)
kitsu_frame_start = bkglobals.FRAME_START - self.kitsu.frame_start_offset
return int(kitsu_frame_start)
@ -389,7 +386,7 @@ def _calc_kitsu_frame_end(self):
But we need acess to seqeuence properties.
"""
frame_start = _calc_kitsu_frame_start(self)
frame_end_final = (frame_start + (self.frame_final_duration - 1))
frame_end_final = frame_start + (self.frame_final_duration - 1)
return int(frame_end_final)
@ -412,7 +409,6 @@ def update_sequence_colors_coll_prop(dummy: Any) -> None:
# Append missing sequences to scene.kitsu.seqeuence_colors.
for seq in sequences:
if not seq.kitsu.sequence_id:
continue
@ -456,7 +452,6 @@ classes = [
def register():
for cls in classes:
bpy.utils.register_class(cls)

View File

@ -96,7 +96,6 @@ def draw_error_config_dir_not_exists(
def draw_error_no_active_camera(
box: bpy.types.UILayout,
) -> bpy.types.UILayout:
row = box.row(align=True)
row.label(text=f"No active camera")
row.prop(bpy.context.scene, "camera", text="")