bugfix, range include current frame
parent
eadd3bb999
commit
4ba0fc1a69
|
@ -58,6 +58,7 @@ class GP_OT_interpolate_stroke(bpy.types.Operator):
|
||||||
if not len(frames_to_jump):
|
if not len(frames_to_jump):
|
||||||
self.report({'WARNING'}, 'No keyframe available in this direction')
|
self.report({'WARNING'}, 'No keyframe available in this direction')
|
||||||
return {'CANCELLED'}
|
return {'CANCELLED'}
|
||||||
|
# print('frames_to_jump: ', frames_to_jump)
|
||||||
|
|
||||||
gp = context.object
|
gp = context.object
|
||||||
|
|
||||||
|
|
2
utils.py
2
utils.py
|
@ -296,7 +296,7 @@ def following_keys(forward=True, all_keys=False) -> list:# -> list[int] | list |
|
||||||
|
|
||||||
limit += direction # offset by one for limit to be in range
|
limit += direction # offset by one for limit to be in range
|
||||||
|
|
||||||
return list(range(cur_frame, limit, settings.padding * direction))
|
return list(range(cur_frame + direction , limit, settings.padding * direction))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return [cur_frame + (settings.padding * direction)]
|
return [cur_frame + (settings.padding * direction)]
|
||||||
|
|
Loading…
Reference in New Issue