Added a call to compatible_eul() after applying camera rotation in fly,
this ensures you can insert rotation keys nicer.
This commit is contained in:
2006-08-09 09:56:27 +00:00
parent 6e4b28968a
commit 6c48d7bda2

View File

@@ -2320,7 +2320,11 @@ void fly(void)
VECCOPY(G.vd->ofs, ofs_backup);
G.vd->persp= persp_backup;
}
} else if (persp_backup!=2) { /* not camera */
}
else if (persp_backup==2) { /* camera */
compatible_eul(G.vd->camera->rot, rot_backup);
}
else { /* not camera */
/* Apply the fly mode view */
/*restore the dist*/
upvec[0]= upvec[1]= 0;