diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-10-14 14:11:01 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-10-14 14:11:01 +0400 |
commit | 0196890ebfb774903d8df2ef8ae440a051a5b8a0 (patch) | |
tree | dba15f53fa7aca1e3bac247950bb1ca6bce39719 /source/blender/src | |
parent | 8fa76a3c43922815fe33973836ddf4da9450fc92 (diff) |
Action Editor - Grease Pencil Bugfix:
When Action Editor was maximised, Grease Pencil data disappeared. This was due to the screen-swapping that went on. Now, it uses the old-screen that was stored in the maximised Action Editor's screen (should be safe...)
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/editaction.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c index 4d3e9c236ca..5ec52870f41 100644 --- a/source/blender/src/editaction.c +++ b/source/blender/src/editaction.c @@ -529,6 +529,13 @@ static void actdata_filter_gpencil (ListBase *act_data, bScreen *sc, int filter_ /* check if filtering types are appropriate */ if ( !(filter_mode & (ACTFILTER_IPOKEYS|ACTFILTER_ONLYICU|ACTFILTER_ACTGROUPED)) ) { + /* special hack for fullscreen area (which must be this one then), + * so we use the curarea->full as screen to get spaces from, since the + * old (pre-fullscreen) screen was stored there... + */ + if ((curarea->full) && (curarea->spacetype==SPACE_ACTION)) + sc= curarea->full; + /* loop over spaces in current screen, finding gpd blocks (could be slow!) */ for (sa= sc->areabase.first; sa; sa= sa->next) { /* try to get gp data */ |