diff options
author | Ton Roosendaal <ton@blender.org> | 2005-04-12 14:08:04 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-04-12 14:08:04 +0400 |
commit | 1bde293997b3d2ac7286815da82f6d7a9e082936 (patch) | |
tree | 661baacd5fa3786783bb4de9309ba5838b32c5f4 /source/blender/src/transform_constraints.c | |
parent | 8be210bd7ee7409a5e90b6fe10c8f3430d501683 (diff) |
Bug fix #2394
While in camera view, going to local axis rotation (R, X, X) the view
became instable. Was still using the view3d view matrix, instead of
initialized TransInfo->viewmat.
Martin; you could check on the mouse motion in this case, for some reason
it only uses horizontal motion?
ALso; renamed button in InfoWindow "Disable sound" to "Disable Game Sound".
Diffstat (limited to 'source/blender/src/transform_constraints.c')
-rwxr-xr-x | source/blender/src/transform_constraints.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/transform_constraints.c b/source/blender/src/transform_constraints.c index 102b3a6c19a..766b8382898 100755 --- a/source/blender/src/transform_constraints.c +++ b/source/blender/src/transform_constraints.c @@ -418,7 +418,7 @@ static void applyAxisConstraintRot(TransInfo *t, TransData *td, float vec[3]) break; } if (!(mode & CON_NOFLIP)) { - if (Inpf(vec, G.vd->viewinv[2]) > 0.0f) { + if (Inpf(vec, t->viewinv[2]) > 0.0f) { VecMulf(vec, -1.0f); } } @@ -459,7 +459,7 @@ static void applyObjectConstraintRot(TransInfo *t, TransData *td, float vec[3]) break; } if (!(mode & CON_NOFLIP)) { - if (Inpf(vec, G.vd->viewinv[2]) > 0.0f) { + if (Inpf(vec, t->viewinv[2]) > 0.0f) { VecMulf(vec, -1.0f); } } |