fix [#24879] "Feather" symmetry option in sculpt mode crashes.
rotate_m4() was being called with axis=0
This commit is contained in:
parent
4235a9ff02
commit
16537d8dbc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user