[Bf-blender-cvs] [d036fa0d6a6] greasepencil-object: Fix: ASAN-related crash when scaling points in editmode
Joshua Leung
noreply at git.blender.org
Mon Apr 23 18:25:44 CEST 2018
Commit: d036fa0d6a6b0022c8e474f6d6bac9da7d0674d6
Author: Joshua Leung
Date: Wed Apr 18 15:35:02 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rBd036fa0d6a6b0022c8e474f6d6bac9da7d0674d6
Fix: ASAN-related crash when scaling points in editmode
===================================================================
M source/blender/editors/transform/transform.c
===================================================================
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index dd33cc3e196..f5483f1e3e3 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -3476,11 +3476,10 @@ static void ElementResize(TransInfo *t, TransDataContainer *tc, TransData *td, f
/* scale stroke thickness */
if (td->val) {
- float ratio = t->values[0];
- snapGridIncrement(t, &ratio);
- applyNumInput(&t->num, &ratio);
- t->values[0] = ratio;
+ snapGridIncrement(t, t->values);
+ applyNumInput(&t->num, t->values);
+ float ratio = t->values[0];
*td->val = td->ival * ratio * gps->falloff;
CLAMP_MIN(*td->val, 0.001f);
}
More information about the Bf-blender-cvs
mailing list