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...)
This commit is contained in:
Joshua Leung 2008-10-14 10:11:01 +00:00
parent 8fa76a3c43
commit 0196890ebf

@ -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 */