diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-24 15:38:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-24 15:38:18 +0300 |
commit | 16537d8dbcccb9a7cad85026f80422916767bc17 (patch) | |
tree | 931737e84f438ba683f7ac49c9dba81845188154 /source/blender/editors | |
parent | 4235a9ff02291194b8b089916115d093fdbaf72b (diff) |
fix [#24879] "Feather" symmetry option in sculpt mode crashes.
rotate_m4() was being called with axis=0
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 79314ca4113..0d07583c28c 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -511,15 +511,16 @@ float calc_overlap(StrokeCache *cache, const char symm, const char axis, const f { float mirror[3]; float distsq; - float mat[4][4]; //flip_coord(mirror, cache->traced_location, symm); flip_coord(mirror, cache->true_location, symm); - unit_m4(mat); - rotate_m4(mat, axis, angle); - - mul_m4_v3(mat, mirror); + if(axis != 0) { + float mat[4][4]; + unit_m4(mat); + rotate_m4(mat, axis, angle); + mul_m4_v3(mat, mirror); + } //distsq = len_squared_v3v3(mirror, cache->traced_location); distsq = len_squared_v3v3(mirror, cache->true_location); |