From 5d1438ad96c9d819f815f97ed5bed7de5d48e8d9 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 16 Oct 2003 09:39:19 +0000 Subject: - 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. :) --- source/blender/makesdna/DNA_view3d_types.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/makesdna/DNA_view3d_types.h') 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; /** -- cgit v1.2.3