diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-01-08 07:59:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-01-08 07:59:11 +0300 |
commit | 53ba22e90c2a4fbd7fe5b954a8e6e5abad7816d2 (patch) | |
tree | b54fffa19de6970f2989f9445c630ea4738fbe5e /source/blender/src/editview.c | |
parent | 4a1a766a16fd692c62233c6348ff35c59eed1936 (diff) |
disabled fly mode for objects with constraints, would do weired stuff.
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r-- | source/blender/src/editview.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |