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".
This commit is contained in:
2005-04-12 10:08:04 +00:00
parent 8be210bd7e
commit 1bde293997
3 changed files with 6 additions and 6 deletions

View File

@@ -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);
}
}