diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-28 05:41:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-28 05:41:36 +0300 |
commit | dcf0860dabf326e3a4b37ae15baae491e661cbf8 (patch) | |
tree | d922c5698ee58ae5153545798ebaaf4957803b98 /source/blender/blenloader/intern | |
parent | 54295369049f9004cce6d8ccacaeda3a52e59a68 (diff) |
Fix tool not being initialized switching windows
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
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 |