Fix snap-scale w/ axis constraint

Related to T46503,
fix only worked when the snap target was axis-aligned.
This commit is contained in:
Campbell Barton 2015-10-23 12:27:15 +11:00
parent 586ec50022
commit 6222505739
Notes: blender-bot 2023-02-14 08:49:53 +01:00
Referenced by issue #46503, snap seems broken when scaling
1 changed files with 2 additions and 2 deletions

View File

@ -889,13 +889,13 @@ static float ResizeBetween(TransInfo *t, const float p1[3], const float p2[3])
sub_v3_v3v3(d1, p1, t->center_global);
sub_v3_v3v3(d2, p2, t->center_global);
project_v3_v3v3(d1, d1, d2);
if (t->con.applyRot != NULL && (t->con.mode & CON_APPLY)) {
mul_m3_v3(t->con.pmtx, d1);
mul_m3_v3(t->con.pmtx, d2);
}
project_v3_v3v3(d1, d1, d2);
len_d1 = len_v3(d1);