diff options
author | Antonioya <blendergit@gmail.com> | 2018-08-01 11:17:05 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-08-01 11:17:05 +0300 |
commit | c06bed25c70cb80657447e510890b29ceb6bbc1b (patch) | |
tree | c49add1290cc2b08cc9733e7b4889ab680c22470 | |
parent | 3f5d3aa0573b0359761102c0da2d789c67803f7b (diff) |
Fix T56187: Crash using cursor tool in Edit/Sculpt and Weight Paint mode
The transform tried to calculate the multiframe falloff, but there was not any stroke to do that.
-rw-r--r-- | source/blender/editors/transform/transform.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index b0de996ee0e..85229ddd041 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -4636,7 +4636,12 @@ static void applyTranslationValue(TransInfo *t, const float vec[3]) if (t->options & CTX_GPENCIL_STROKES) { /* grease pencil multiframe falloff */ bGPDstroke *gps = (bGPDstroke *)td->extra; - mul_v3_fl(tvec, td->factor * gps->runtime.multi_frame_falloff); + if (gps != NULL) { + mul_v3_fl(tvec, td->factor * gps->runtime.multi_frame_falloff); + } + else { + mul_v3_fl(tvec, td->factor); + } } else { /* proportional editing falloff */ |