[Bf-blender-cvs] [4f68e802fb9] greasepencil-object: GPencil: Use right operator for new brushes
Antonio Vazquez
noreply at git.blender.org
Tue Nov 26 19:55:26 CET 2019
Commit: 4f68e802fb91a14821cbbdcf6208fc132f321b53
Author: Antonio Vazquez
Date: Tue Nov 26 19:55:19 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB4f68e802fb91a14821cbbdcf6208fc132f321b53
GPencil: Use right operator for new brushes
The old operator was working by luck, but the gpencil settings were not set.
===================================================================
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 1a9e90c1f20..df6879738dc 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1870,7 +1870,7 @@ class VIEW3D_PT_tools_grease_pencil_brush(View3DPanel, Panel):
row = layout.row()
if not self.is_popover:
col = row.column()
- col.template_ID_preview(gpencil_paint, "brush", new="brush.add", rows=3, cols=8)
+ col.template_ID_preview(gpencil_paint, "brush", new="brush.add_gpencil", rows=3, cols=8)
col = row.column()
brush = gpencil_paint.brush
@@ -2317,7 +2317,7 @@ class VIEW3D_PT_tools_grease_pencil_vertex_brush(View3DPanel, Panel):
row = layout.row()
if not self.is_popover:
col = row.column()
- col.template_ID_preview(gpencil_vertex_paint, "brush", new="brush.add", rows=3, cols=8)
+ col.template_ID_preview(gpencil_vertex_paint, "brush", new="brush.add_gpencil", rows=3, cols=8)
col = row.column()
brush = gpencil_vertex_paint.brush
@@ -2555,7 +2555,7 @@ class VIEW3D_PT_tools_grease_pencil_sculpt(View3DPanel, Panel):
row = layout.row()
if not self.is_popover:
col = row.column()
- col.template_ID_preview(gpencil_sculpt_paint, "brush", new="brush.add", rows=3, cols=8)
+ col.template_ID_preview(gpencil_sculpt_paint, "brush", new="brush.add_gpencil", rows=3, cols=8)
col = row.column()
brush = gpencil_sculpt_paint.brush
@@ -2601,7 +2601,7 @@ class VIEW3D_PT_tools_grease_pencil_weight_paint(View3DPanel, Panel):
row = layout.row()
if not self.is_popover:
col = row.column()
- col.template_ID_preview(gpencil_weight_paint, "brush", new="brush.add", rows=3, cols=8)
+ col.template_ID_preview(gpencil_weight_paint, "brush", new="brush.add_gpencil", rows=3, cols=8)
col = row.column()
brush = gpencil_weight_paint.brush
More information about the Bf-blender-cvs
mailing list