diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-02 06:45:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-02 06:45:42 +0300 |
commit | 99b8eef6a534c2c9846b48736cb9eb007c120ec7 (patch) | |
tree | 4e036c62c46c9ccd805506165e9b7fcfa13b551b /source/blender/windowmanager/intern | |
parent | d46c910b1a105287bccccd651056a9a0a73b3936 (diff) |
BKE_global: clear deprecated flags on load (all of them)
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 224a4cd597e..f4062c5296e 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -616,6 +616,7 @@ bool WM_file_read(bContext *C, const char *filepath, ReportList *reports) * need to re-enable it here else drivers + registered scripts wont work. */ if (G.f != G_f_orig) { const int flags_keep = G_FLAG_ALL_RUNTIME; + G.f &= G_FLAG_ALL_READFILE; G.f = (G.f & ~flags_keep) | (G_f_orig & flags_keep); } |