disabled fly mode for objects with constraints, would do weired stuff.

This commit is contained in:
Campbell Barton 2007-01-08 04:59:11 +00:00
parent 4a1a766a16
commit 53ba22e90c

@ -2154,6 +2154,11 @@ void fly(void)
persp_backup= G.vd->persp;
dist_backup= G.vd->dist;
if (G.vd->persp==2) { /* Camera */
if(G.vd->camera->constraints.first) {
error("Cannot fly an object with constraints");
return;
}
/* store the origoinal camera loc and rot */
VECCOPY(ofs_backup, G.vd->camera->loc);
VECCOPY(rot_backup, G.vd->camera->rot);