diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-16 12:47:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-16 12:47:01 +0300 |
commit | 34c67bae0cf85eb3f7a2018114f010c98ec1af7d (patch) | |
tree | fe01470ab2f3969eb2eb747c400d5819d6741288 /source/blender/editors/sculpt_paint | |
parent | 5a1fdcdc2aad2543c2b615273baff0d8d0329096 (diff) |
bugfix [#24747] Blender crash entering in Sculpt Mode
rotate_m4 was being called with a zero axis.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index efc39e6ae0a..79314ca4113 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -2562,8 +2562,11 @@ static void calc_brushdata_symm(Sculpt *sd, StrokeCache *cache, const char symm, unit_m4(cache->symm_rot_mat); unit_m4(cache->symm_rot_mat_inv); - rotate_m4(cache->symm_rot_mat, axis, angle); - rotate_m4(cache->symm_rot_mat_inv, axis, -angle); + + if(axis) { /* expects XYZ */ + rotate_m4(cache->symm_rot_mat, axis, angle); + rotate_m4(cache->symm_rot_mat_inv, axis, -angle); + } mul_m4_v3(cache->symm_rot_mat, cache->location); mul_m4_v3(cache->symm_rot_mat, cache->grab_delta_symmetry); |