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:
authorCampbell Barton <ideasman42@gmail.com>2018-11-28 05:41:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-28 05:41:36 +0300
commitdcf0860dabf326e3a4b37ae15baae491e661cbf8 (patch)
treed922c5698ee58ae5153545798ebaaf4957803b98 /source/blender/blenloader
parent54295369049f9004cce6d8ccacaeda3a52e59a68 (diff)
Fix tool not being initialized switching windows
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 53476adf2ce..42b672d47b5 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -6729,6 +6729,8 @@ static void direct_link_area(FileData *fd, ScrArea *area)
area->butspacetype = SPACE_EMPTY; /* Should always be unset so that rna_Area_type_get works correctly */
area->region_active_win = -1;
+ area->flag &= ~AREA_FLAG_ACTIVE_TOOL_UPDATE;
+
area->global = newdataadr(fd, area->global);
/* if we do not have the spacetype registered we cannot