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:
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);