diff options
author | Juho Vepsalainen <bebraw@gmail.com> | 2007-06-09 09:51:11 +0400 |
---|---|---|
committer | Juho Vepsalainen <bebraw@gmail.com> | 2007-06-09 09:51:11 +0400 |
commit | ca1ccb84bc39c7071949527ffba3ad31f1be2281 (patch) | |
tree | 4c37c66950cbb5efe95f5356bd808fd5291df266 | |
parent | 9168c16ddabf9fe85d7ddb918f998e6abfe7a9b0 (diff) |
Index: source/blender/src/editscreen.c
===================================================================
--- source/blender/src/editscreen.c (revision 10896)
+++ source/blender/src/editscreen.c (working copy)
@@ -1403,7 +1403,7 @@
if(sc == NULL)
sc= G.main->screen.first;
- setscreen(sc);
+ if(is_allowed_to_change_screen(sc)) setscreen(sc);
g_activearea= NULL;
towin= 0;
}
@@ -1416,7 +1416,7 @@
if(sc == NULL)
sc= G.main->screen.last;
- setscreen(sc);
+ if(is_allowed_to_change_screen(sc)) setscreen(sc);
g_activearea= NULL;
towin= 0;
}
-rw-r--r-- | source/blender/src/editscreen.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c index 7149332c1b2..b9487c0a954 100644 --- a/source/blender/src/editscreen.c +++ b/source/blender/src/editscreen.c @@ -1400,8 +1400,7 @@ void screenmain(void) bScreen *sc= G.curscreen->id.next; /* if screen is last, set it to first */ - if(sc == NULL) - sc= G.main->screen.first; + if(sc == NULL) sc= G.main->screen.first; if(is_allowed_to_change_screen(sc)) setscreen(sc); g_activearea= NULL; @@ -1413,8 +1412,7 @@ void screenmain(void) bScreen *sc= G.curscreen->id.prev; /* if screen is first, set it to last */ - if(sc == NULL) - sc= G.main->screen.last; + if(sc == NULL) sc= G.main->screen.last; if(is_allowed_to_change_screen(sc)) setscreen(sc); g_activearea= NULL; |