Skip to content
Snippets Groups Projects
Commit 2f5d45bc authored by Pullusb's avatar Pullusb
Browse files

fix brush import - change default rotate binding

parent 91d2a7f7
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ bl_info = { ...@@ -21,7 +21,7 @@ bl_info = {
"name": "Grease Pencil Tools", "name": "Grease Pencil Tools",
"description": "Pack of tools for Grease pencil drawing", "description": "Pack of tools for Grease pencil drawing",
"author": "Samuel Bernou", "author": "Samuel Bernou",
"version": (1, 1, 0), "version": (1, 1, 1),
"blender": (2, 83, 0), "blender": (2, 83, 0),
"location": "sidebar (N) > Grease pencil > Grease pencil", "location": "sidebar (N) > Grease pencil > Grease pencil",
"warning": "", "warning": "",
......
...@@ -17,7 +17,10 @@ class GP_OT_install_brush_pack(bpy.types.Operator): ...@@ -17,7 +17,10 @@ class GP_OT_install_brush_pack(bpy.types.Operator):
with bpy.data.libraries.load(str(blend_fp), link=False) as (data_from, data_to): with bpy.data.libraries.load(str(blend_fp), link=False) as (data_from, data_to):
# load brushes starting with 'tex' prefix if there are not already there # load brushes starting with 'tex' prefix if there are not already there
data_to.brushes = [b for b in data_from.brushes if b.startswith('tex_') and not b in cur_brushes] data_to.brushes = [b for b in data_from.brushes if b.startswith('tex_') and not b in cur_brushes]
# Add holdout
if 'z_holdout' in data_from.brushes:
data_to.brushes.append('z_holdout')
brush_count = len(data_to.brushes) brush_count = len(data_to.brushes)
## force fake user for the brushes ## force fake user for the brushes
for b in data_to.brushes: for b in data_to.brushes:
......
...@@ -100,7 +100,7 @@ class GreasePencilAddonPrefs(bpy.types.AddonPreferences): ...@@ -100,7 +100,7 @@ class GreasePencilAddonPrefs(bpy.types.AddonPreferences):
mouse_click : EnumProperty( mouse_click : EnumProperty(
name="Mouse button", description="click on right/left/middle mouse button in combination with a modifier to trigger alignement", name="Mouse button", description="click on right/left/middle mouse button in combination with a modifier to trigger alignement",
default='RIGHTMOUSE', default='MIDDLEMOUSE',
items=( items=(
('RIGHTMOUSE', 'Right click', 'Use click on Right mouse button', 'MOUSE_RMB', 0), ('RIGHTMOUSE', 'Right click', 'Use click on Right mouse button', 'MOUSE_RMB', 0),
('LEFTMOUSE', 'Left click', 'Use click on Left mouse button', 'MOUSE_LMB', 1), ('LEFTMOUSE', 'Left click', 'Use click on Left mouse button', 'MOUSE_LMB', 1),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment