Skip to content
Snippets Groups Projects
Commit 08e9ab15 authored by Pullusb's avatar Pullusb
Browse files

GPencil Tools: Fix timeline snapping

Fix error when trying to use snap with the OSD timeline deactivated
parent 19675aa1
Branches
Tags
No related merge requests found
......@@ -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": "",
......
......@@ -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'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment