diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2016-07-28 03:36:12 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2016-07-28 03:36:12 +0300 |
commit | 8f16181e9c491ccb1e94f092f5203fc759ee7c68 (patch) | |
tree | b66741c7538ff101295ae0c7c262489bc389754a /source | |
parent | c59b21feec3056d208eb068346eaedd52a40bec7 (diff) |
Add comments on behavior of spacedata and regionbase lists
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesdna/DNA_screen_types.h | 17 |
1 files changed, 12 insertions, 5 deletions
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; |