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:
authorJoshua Leung <aligorith@gmail.com>2008-09-29 12:11:26 +0400
committerJoshua Leung <aligorith@gmail.com>2008-09-29 12:11:26 +0400
commite17c2c51bf3d1d8e47f423c4363a51f3b1602469 (patch)
tree6f0d3747947a95b3f5ebcbcb6fcf554b6fb5a860 /source/blender/makesdna/DNA_view3d_types.h
parent638c51ba7d54b7a815c745d5f383bcbed6d4d1d1 (diff)
Bugfix:
Recoded pidhash's recent Pad0 (Lastview) commits (r.16802 and r.16810). It was causing major issues with Ortho perspective + rotating the view with the MMB. Setting G.vd->view to -1 was not such a valid way to do so (and also, this didn't play nicely with smoothview). This feature should now work correctly, though there are still one or two places where it doesn't always seem totally correct yet. The basic idea of this feature, is that after going into camera mode (Pad0), pressing Pad0 again lets you go back to the view as you had it before entering camera mode.
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index 8e8bab0dd11..777a5dc8eca 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -147,8 +147,9 @@ typedef struct View3D {
/* last view */
float lviewquat[4];
- short lpersp, pad4;
- int pad5;
+ short lpersp, lview;
+ short lastview_set;
+ short pad5;
} View3D;