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".
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user