From e22b91265bd77c29b8a80ebad84efab61426bcda Mon Sep 17 00:00:00 2001 From: Pullusb Date: Tue, 25 May 2021 11:32:47 +0200 Subject: [PATCH] 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. --- CHANGELOG.md | 5 +++++ OP_keyframe_jump.py | 3 +++ __init__.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ba8f83..ff75af8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/OP_keyframe_jump.py b/OP_keyframe_jump.py index c689c6b..18f4877 100644 --- a/OP_keyframe_jump.py +++ b/OP_keyframe_jump.py @@ -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"} diff --git a/__init__.py b/__init__.py index 1eb218e..b85d949 100644 --- a/__init__.py +++ b/__init__.py @@ -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": "",