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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-05-03 18:42:46 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-05-03 18:42:46 +0300
commit7d6180364041553e49a9d3b25de57c73299da8a0 (patch)
tree6f3167419451e57b928e71a6cb155dce170abbe2 /source/blender/blenkernel
parente684e0ec959f47402e1de4d6dde2551901a2d89d (diff)
Sculpt: Fix crash when using grab brush
Was wrong paint structure deducted from context. Test plan: With default cube, go to sculpt mode, switch to grab brush and try to sculpt.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/paint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c
index a63777dd5ad..4056a15fe47 100644
--- a/source/blender/blenkernel/intern/paint.c
+++ b/source/blender/blenkernel/intern/paint.c
@@ -214,8 +214,7 @@ Paint *BKE_paint_get_active_from_context(const bContext *C)
}
}
else {
- /* default to image paint */
- return &ts->imapaint.paint;
+ return BKE_paint_get_active(sce, view_layer);
}
}