Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-12-17 22:40:19 +0300
committerTon Roosendaal <ton@blender.org>2008-12-17 22:40:19 +0300
commit7a5186c53f12c772abb692e831d15baebe958445 (patch)
treec1f8b1e357a01765b0172cad6b7e48273667316e /source/blender/editors/screen/area.c
parent6634ed9a872ac7f5417ba9d6472a4a568f64d68d (diff)
2.5
Added operator for moving area to 'full screen'. This is instable with tooltips on... fishy stuff then goes on, which Brecht will first look at. :)
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r--source/blender/editors/screen/area.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 5fe8d5e315c..35b7f21910a 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -490,6 +490,7 @@ void area_copy_data(ScrArea *sa1, ScrArea *sa2, int swap_space)
sa1->headertype= sa2->headertype;
sa1->spacetype= sa2->spacetype;
+ sa1->butspacetype= sa2->butspacetype;
if(swap_space) {
SWAP(ListBase, sa1->spacedata, sa2->spacedata);
@@ -539,7 +540,7 @@ void area_copy_data(ScrArea *sa1, ScrArea *sa2, int swap_space)
/* *********** Space switching code, local now *********** */
/* XXX make operator for this */
-static void area_newspace(bContext *C, ScrArea *sa, int type)
+void area_newspace(bContext *C, ScrArea *sa, int type)
{
if(sa->spacetype != type) {
SpaceType *st;
@@ -585,7 +586,8 @@ static void area_newspace(bContext *C, ScrArea *sa, int type)
BLI_addhead(&sa->spacedata, sl);
/* swap regions */
- slold->regionbase= sa->regionbase;
+ if(slold)
+ slold->regionbase= sa->regionbase;
sa->regionbase= sl->regionbase;
sl->regionbase.first= sl->regionbase.last= NULL;
}