diff options
author | Matt Ebb <matt@mke3.net> | 2009-12-11 07:03:55 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-12-11 07:03:55 +0300 |
commit | 34ec7474fd36238459f96bd3426f1b5663d2210d (patch) | |
tree | 77f3305ea6c1c0fc8a2c9b7edc7b6bd3a513de1e /source/blender/editors/screen | |
parent | d6bee7da753b0047e0ad0b4c1f4a41bec915c551 (diff) |
Tweak to make temp 'fullscreen' screens be alphabetically similar to the previous ones that spawned them, so you can switch screens (ctrl left and right arrow) more smoothly ( [#20301] Screens and Fullscreen still doesn't work )
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c index fef3818a2c7..640a14a934b 100644 --- a/source/blender/editors/screen/screen_edit.c +++ b/source/blender/editors/screen/screen_edit.c @@ -1483,6 +1483,7 @@ ScrArea *ed_screen_fullarea(bContext *C, wmWindow *win, ScrArea *sa) } else { ScrArea *newa; + char newname[20]; oldscreen= win->screen; @@ -1491,8 +1492,8 @@ ScrArea *ed_screen_fullarea(bContext *C, wmWindow *win, ScrArea *sa) return NULL; oldscreen->full = SCREENFULL; - - sc= ED_screen_add(win, oldscreen->scene, "temp"); + BLI_snprintf(newname, sizeof(newname), "%s-%s", oldscreen->id.name+2, "temp"); + sc= ED_screen_add(win, oldscreen->scene, newname); sc->full = SCREENFULL; // XXX /* timer */ |