Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-01-08 07:59:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-01-08 07:59:11 +0300
commit53ba22e90c2a4fbd7fe5b954a8e6e5abad7816d2 (patch)
treeb54fffa19de6970f2989f9445c630ea4738fbe5e /source/blender/src/editview.c
parent4a1a766a16fd692c62233c6348ff35c59eed1936 (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.c5
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);