From d7c8ff725afa8748b2443e18ff2aba359afe022f Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 1 Dec 2004 12:39:14 +0000 Subject: Bug #1909 When choosing "render engine" in Scene Buttons, the newly added or removed Panels didn't invoke a re-alignment event yet. Also added code that inserts new panels as good as possible on their previous locations. This works reliable for 1 new panel, not for more, this because a Panel only stores its old location, not the locations of all Panels in a given configuration. Consider that minor issue... --- source/blender/makesdna/DNA_screen_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_screen_types.h') diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index f11374dff99..dc5a0b20b17 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -87,7 +87,7 @@ typedef struct Panel { /* the part from uiBlock that needs saved in file */ short flag, active; /* active= used currently by a uiBlock */ short control, pad; short old_ofsx, old_ofsy; /* for stow */ - int pad2; + int sortcounter; /* when sorting panels, it uses this to put new ones in right place */ struct Panel *paneltab; /* this panel is tabbed in *paneltab */ } Panel; -- cgit v1.2.3