From 8f16181e9c491ccb1e94f092f5203fc759ee7c68 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 28 Jul 2016 02:36:12 +0200 Subject: Add comments on behavior of spacedata and regionbase lists --- source/blender/makesdna/DNA_screen_types.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index fbeabb351ac..e208ef39719 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -218,11 +218,18 @@ typedef struct ScrArea { char temp, pad; struct SpaceType *type; /* callbacks for this space type */ - - ListBase spacedata; /* SpaceLink */ - ListBase regionbase; /* ARegion */ - ListBase handlers; /* wmEventHandler */ - + + /* A list of space links (editors) that were open in this area before. When + * changing the editor type, we try to reuse old editor data from this list. + * The first item is the active/visible one. + */ + ListBase spacedata; /* SpaceLink */ + /* NOTE: This region list is the one from the active/visible editor (first item in + * spacedata list). Use SpaceLink.regionbase if it's inactive (but only then)! + */ + ListBase regionbase; /* ARegion */ + ListBase handlers; /* wmEventHandler */ + ListBase actionzones; /* AZone */ } ScrArea; -- cgit v1.2.3