diff --git a/OP_eraser_brush.py b/OP_eraser_brush.py index d3abebb..3eccabf 100644 --- a/OP_eraser_brush.py +++ b/OP_eraser_brush.py @@ -358,6 +358,7 @@ class GPTB_OT_eraser(Operator): # stroke.points[index].select = False #bpy.ops.object.mode_set(mode='OBJECT') + context.scene.tool_settings.gpencil_selectmode_edit = self.gpencil_selectmode_edit bpy.ops.object.mode_set(mode='PAINT_GPENCIL') #selected_strokes = [s for s in self.gp_frame.strokes if s.select] #bpy.ops.object.mode_set(mode='PAINT_GPENCIL') @@ -397,6 +398,7 @@ class GPTB_OT_eraser(Operator): gp = context.object matrix = gp.matrix_world + self.gpencil_selectmode_edit = context.scene.tool_settings.gpencil_selectmode_edit self.radius = self.get_radius(context, event) self.mouse_prev = self.mouse = Vector((event.mouse_region_x, event.mouse_region_y)) self.mouse_path = [(self.mouse_prev, self.radius)]