[Bf-blender-cvs] [c06bed25c70] blender2.8: Fix T56187: Crash using cursor tool in Edit/Sculpt and Weight Paint mode
Antonioya
noreply at git.blender.org
Wed Aug 1 10:17:26 CEST 2018
Commit: c06bed25c70cb80657447e510890b29ceb6bbc1b
Author: Antonioya
Date: Wed Aug 1 10:17:05 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc06bed25c70cb80657447e510890b29ceb6bbc1b
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.
===================================================================
M source/blender/editors/transform/transform.c
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list