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
path: root/source
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-08-01 11:17:05 +0300
committerAntonioya <blendergit@gmail.com>2018-08-01 11:17:05 +0300
commitc06bed25c70cb80657447e510890b29ceb6bbc1b (patch)
treec49add1290cc2b08cc9733e7b4889ab680c22470 /source
parent3f5d3aa0573b0359761102c0da2d789c67803f7b (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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/transform/transform.c7
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 */