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:
authorTon Roosendaal <ton@blender.org>2003-10-16 13:39:19 +0400
committerTon Roosendaal <ton@blender.org>2003-10-16 13:39:19 +0400
commit5d1438ad96c9d819f815f97ed5bed7de5d48e8d9 (patch)
tree1f1c237cb0624dd1ba5f6159ddde01d9c259a571 /source/blender/makesdna/DNA_view3d_types.h
parentc7618783fbfd7636adbd8df14ddc0feb563fa58e (diff)
- fixed editing vertices again!
I had to clean up very old calls to switch matrices for 3d windows. To make it more clear, I've introduced defines for the infamous persp() function: persp(PERSP_WIN); sets matrices at pixel level window persp(PERSP_VIEW); restores matrices back to 3d drawing persp(PERSP_STORE); only called once, to store correct matrices I will now check on frontbuffer drawing of vertices... it's very doubtful if it's used still correctly, was only meant for visual speed in the early nineties you know. :)
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index cf19e79f3a3..fbba5d674dd 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -71,6 +71,10 @@ typedef struct View3D {
float viewinv[4][4];
float persmat[4][4];
float persinv[4][4];
+
+ float winmat1[4][4]; // persp(1) storage, for swap matrices
+ float viewmat1[4][4];
+
float viewquat[4], dist;
/**