fix kf jump rare refresh problem

1.3.1:

- fix: native refresh error that rarely happen that doesn't completely refresh the scene on keyframe jump.
  - Use a double frame change to ensure refresh.
gpv2
Pullusb 2021-05-25 11:32:47 +02:00
parent 6cf22b81e8
commit e22b91265b
3 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,11 @@
# Changelog
1.3.1:
- fix: native refresh error that rarely happen that doesn't completely refresh the scene on keyframe jump.
- Use a double frame change to ensure refresh.
1.3.0:
- feat: new duplicate send to layer feaure - `ctrl + shift + D` in GP dopesheet

View File

@ -88,10 +88,13 @@ class GPTB_OT_jump_gp_keyframe(bpy.types.Operator):
if maxs:
n = min(maxs)
## Double the frame set to avoid refresh problem (had one in 2.91.2)
if self.next and n is not None:
context.scene.frame_set(n)
context.scene.frame_current = n
elif not self.next and p is not None:
context.scene.frame_set(p)
context.scene.frame_current = p
else:
self.report({'INFO'}, 'No keyframe in this direction')
return {"CANCELLED"}

View File

@ -15,7 +15,7 @@ bl_info = {
"name": "GP toolbox",
"description": "Set of tools for Grease Pencil in animation production",
"author": "Samuel Bernou",
"version": (1, 3, 0),
"version": (1, 3, 1),
"blender": (2, 91, 0),
"location": "sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
"warning": "",