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>2007-01-08 14:52:11 +0300
committerTon Roosendaal <ton@blender.org>2007-01-08 14:52:11 +0300
commit1f9382614404ec98ec8594d4463754b34d7469cc (patch)
tree2bf683ef0f7ebdb9eac5d4ed1d4e4dc425b024af /source/blender/src/editscreen.c
parentafe7ea072dfa13a84d8403936c3424a259ef5920 (diff)
Bugfix #5634
Adding a new Blender Screen (top header, screen browse menu) did not correctly clear memory, causing scriptlinks in Area Windows to mess up
Diffstat (limited to 'source/blender/src/editscreen.c')
-rw-r--r--source/blender/src/editscreen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c
index 136a4a82273..de50c8bb3b8 100644
--- a/source/blender/src/editscreen.c
+++ b/source/blender/src/editscreen.c
@@ -2481,6 +2481,8 @@ static void copy_screen(bScreen *to, bScreen *from)
sa->spacedata.first= sa->spacedata.last= NULL;
sa->uiblocks.first= sa->uiblocks.last= NULL;
sa->panels.first= sa->panels.last= NULL;
+ sa->scriptlink.totscript= 0;
+
copy_areadata(sa, saf, 0);
sa= sa->next;