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
path: root/source
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2007-04-30 08:30:41 +0400
committerMatt Ebb <matt@mke3.net>2007-04-30 08:30:41 +0400
commit367c148f666660262d3d7274b32d5d1e0926b9eb (patch)
tree23adb4f4fd730f9f37cb9d02fba7ee0645a129d6 /source
parent803697e30a9535157c78e4fd48d53864f20b1cdc (diff)
* Only reset local view near camera clipping to 0.1 if it was previously larger.
i.e. if I'm zoomed in working on something zoomed in close with a short near clipping distance, don't suddenly clip off my work when I enter local view.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/view.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index 2193d17aa1c..d5cfef5d590 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -1295,11 +1295,9 @@ void initlocalview()
G.vd->dist*= size;
}
- if(G.vd->persp>1) {
- G.vd->persp= 1;
-
- }
- G.vd->near= 0.1;
+ if (G.vd->persp>1) G.vd->persp= 1;
+ if (G.vd->near> 0.1) G.vd->near= 0.1;
+
G.vd->cursor[0]= -G.vd->ofs[0];
G.vd->cursor[1]= -G.vd->ofs[1];
G.vd->cursor[2]= -G.vd->ofs[2];