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
parent
6cf22b81e8
commit
e22b91265b
|
@ -1,6 +1,11 @@
|
||||||
# Changelog
|
# 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:
|
1.3.0:
|
||||||
|
|
||||||
- feat: new duplicate send to layer feaure - `ctrl + shift + D` in GP dopesheet
|
- feat: new duplicate send to layer feaure - `ctrl + shift + D` in GP dopesheet
|
||||||
|
|
|
@ -88,10 +88,13 @@ class GPTB_OT_jump_gp_keyframe(bpy.types.Operator):
|
||||||
if maxs:
|
if maxs:
|
||||||
n = min(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:
|
if self.next and n is not None:
|
||||||
context.scene.frame_set(n)
|
context.scene.frame_set(n)
|
||||||
|
context.scene.frame_current = n
|
||||||
elif not self.next and p is not None:
|
elif not self.next and p is not None:
|
||||||
context.scene.frame_set(p)
|
context.scene.frame_set(p)
|
||||||
|
context.scene.frame_current = p
|
||||||
else:
|
else:
|
||||||
self.report({'INFO'}, 'No keyframe in this direction')
|
self.report({'INFO'}, 'No keyframe in this direction')
|
||||||
return {"CANCELLED"}
|
return {"CANCELLED"}
|
||||||
|
|
|
@ -15,7 +15,7 @@ bl_info = {
|
||||||
"name": "GP toolbox",
|
"name": "GP toolbox",
|
||||||
"description": "Set of tools for Grease Pencil in animation production",
|
"description": "Set of tools for Grease Pencil in animation production",
|
||||||
"author": "Samuel Bernou",
|
"author": "Samuel Bernou",
|
||||||
"version": (1, 3, 0),
|
"version": (1, 3, 1),
|
||||||
"blender": (2, 91, 0),
|
"blender": (2, 91, 0),
|
||||||
"location": "sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
"location": "sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
|
|
Loading…
Reference in New Issue