Add Eraser Tool

1.5.0
- feat: Eraser Brush Tool (Need to be enable in the preferences)
This commit is contained in:
Christophe SEUX
2021-06-16 17:35:17 +02:00
parent 3d7a208a50
commit 6eabc02ce8
4 changed files with 565 additions and 3 deletions
+4
View File
@@ -9,12 +9,16 @@ from bpy.props import (
from .OP_cursor_snap_canvas import cursor_follow_update
def change_edit_lines_opacity(self, context):
for gp in bpy.data.grease_pencils:
if not gp.is_annotation:
gp.edit_line_color[3]=self.edit_lines_opacity
class GP_PG_ToolsSettings(bpy.types.PropertyGroup) :
eraser_radius : IntProperty(
name="Tint hue offset", description="Radius of eraser brush",
default=20, min=0, max=500, subtype='PIXEL')
drawcam_passepartout : BoolProperty(
name="Show cam passepartout",