Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_data.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index 4dcb3420bd6..8c7068c0a7c 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -1561,7 +1561,7 @@ static int gp_brush_select_exec(bContext *C, wmOperator *op)
const int index = RNA_int_get(op->ptr, "index");
- Paint *paint = BKE_brush_get_gpencil_paint(ts);
+ Paint *paint = &ts->gp_paint->paint;
int i = 0;
for (Brush *brush = bmain->brush.first; brush; brush = brush->id.next) {
if (brush->ob_mode == OB_MODE_GPENCIL_PAINT) {