From 53ba22e90c2a4fbd7fe5b954a8e6e5abad7816d2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 8 Jan 2007 04:59:11 +0000 Subject: disabled fly mode for objects with constraints, would do weired stuff. --- source/blender/src/editview.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/src/editview.c') diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c index 6bff5d47475..ada7f961dca 100644 --- a/source/blender/src/editview.c +++ b/source/blender/src/editview.c @@ -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); -- cgit v1.2.3