Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons-contrib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons-contrib
Commits
2f5d45bc
Commit
2f5d45bc
authored
4 years ago
by
Pullusb
Browse files
Options
Downloads
Patches
Plain Diff
fix brush import - change default rotate binding
parent
91d2a7f7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
greasepencil-addon/__init__.py
+1
-1
1 addition, 1 deletion
greasepencil-addon/__init__.py
greasepencil-addon/import_brush_pack.py
+4
-1
4 additions, 1 deletion
greasepencil-addon/import_brush_pack.py
greasepencil-addon/prefs.py
+1
-1
1 addition, 1 deletion
greasepencil-addon/prefs.py
with
6 additions
and
3 deletions
greasepencil-addon/__init__.py
+
1
−
1
View file @
2f5d45bc
...
@@ -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
"
:
""
,
...
...
This diff is collapsed.
Click to expand it.
greasepencil-addon/import_brush_pack.py
+
4
−
1
View file @
2f5d45bc
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
greasepencil-addon/prefs.py
+
1
−
1
View file @
2f5d45bc
...
@@ -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
=
'
RIGHT
MOUSE
'
,
default
=
'
MIDDLE
MOUSE
'
,
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
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment