From 6480956c5854cb8bcd21c76b57f3d9287fe0d430 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 15 Oct 2003 12:26:26 +0000 Subject: - expanded internal windowmanager that it allows button panels in any window (type) - each SpaceData struct (not the window!) can get 'block handlers' assigned, basically event codes that invoke drawing button panels. - this is saved in files, and Panels behave in any window like it does now in buttonswindow - it also means that a 'space window' should leave with a matrix set for buttons level - try it in view3d header menu, 'view'->'backdrop'. this opens the old viewbuttons - it all works non blocking! instant updates of viewbuttons visible in 3d window now. Not done yet: - checking and fixing frontbuffer drawing (select a wireframe draws over) - temporally vertices cannot be selected, is my next project - closing or hiding Panels... - styling stuff... i committed for others to review as well. Have fun. this is certainly a huge improvement over the old viewbuttons! --- source/blender/makesdna/DNA_view3d_types.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (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 8f1956a36b8..cf19e79f3a3 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -61,9 +61,12 @@ typedef struct BGpic { typedef struct View3D { struct SpaceLink *next, *prev; - int spacetype, pad; + int spacetype; + float blockscale; struct ScrArea *area; + short blockhandler[8]; + float viewmat[4][4]; float viewinv[4][4]; float persmat[4][4]; -- cgit v1.2.3