Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPullusb <bernou.samuel@gmail.com>2021-03-30 23:06:01 +0300
committerPullusb <bernou.samuel@gmail.com>2021-03-30 23:06:01 +0300
commit08e9ab150d105ba4de2b977b94ab794efd6fd1f2 (patch)
treed533d22914c03ab58c5a33b5f6c7e9571f39272f /greasepencil_tools
parent19675aa14d7559020c75936b1b92ac9d004e04f4 (diff)
GPencil Tools: Fix timeline snapping
Fix error when trying to use snap with the OSD timeline deactivated
Diffstat (limited to 'greasepencil_tools')
-rw-r--r--greasepencil_tools/__init__.py2
-rw-r--r--greasepencil_tools/timeline_scrub.py6
2 files changed, 7 insertions, 1 deletions
diff --git a/greasepencil_tools/__init__.py b/greasepencil_tools/__init__.py
index 24b0399a..66a9f611 100644
--- a/greasepencil_tools/__init__.py
+++ b/greasepencil_tools/__init__.py
@@ -21,7 +21,7 @@ bl_info = {
"name": "Grease Pencil Tools",
"description": "Extra tools for Grease Pencil",
"author": "Samuel Bernou, Antonio Vazquez, Daniel Martinez Lara, Matias Mendiola",
-"version": (1, 4, 1),
+"version": (1, 4, 2),
"blender": (2, 91, 0),
"location": "Sidebar > Grease Pencil > Grease Pencil Tools",
"warning": "",
diff --git a/greasepencil_tools/timeline_scrub.py b/greasepencil_tools/timeline_scrub.py
index 3f69ebb9..75e2cef4 100644
--- a/greasepencil_tools/timeline_scrub.py
+++ b/greasepencil_tools/timeline_scrub.py
@@ -233,6 +233,12 @@ class GPTS_OT_time_scrub(bpy.types.Operator):
self.hud = prefs.use_hud
if not self.hud:
+ ## Same as end settings when HUD is On
+ if self.lock_range:
+ self.pos = [i for i in self.pos if self.f_start <= i <= self.f_end]
+ self.pos = np.asarray(self.pos)
+ if self.rolling_mode:
+ context.scene.frame_current = self.new_frame
context.window_manager.modal_handler_add(self)
return {'RUNNING_MODAL'}