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:
authorNathan Craddock <nzcraddock@gmail.com>2019-08-29 05:46:50 +0300
committerNathan Craddock <nzcraddock@gmail.com>2019-08-29 05:49:15 +0300
commitf4424727de948270ef3344ea8ce37451ab1ea957 (patch)
tree85698967c9d5f9c5b4e94dc967f9d191985bbccf
parent5b96dc2381c41d1e6926e481b76965b69dd07b47 (diff)
Outliner: fix sync select on read file without loading UI
Tag for a complete sync when loading a file with load UI disabled.
-rw-r--r--source/blender/windowmanager/intern/wm_files.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 3751c76c571..ae704142d5a 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -101,6 +101,7 @@
#include "ED_datafiles.h"
#include "ED_fileselect.h"
#include "ED_image.h"
+#include "ED_outliner.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "ED_util.h"
@@ -1971,6 +1972,10 @@ static int wm_homefile_read_exec(bContext *C, wmOperator *op)
}
}
+ if (G.fileflags & G_FILE_NO_UI) {
+ ED_outliner_select_sync_from_all_tag(C);
+ }
+
return OPERATOR_FINISHED;
}
@@ -2226,6 +2231,9 @@ static int wm_open_mainfile__open(bContext *C, wmOperator *op)
BKE_report_print_level_set(op->reports, RPT_WARNING);
if (success) {
+ if (G.fileflags & G_FILE_NO_UI) {
+ ED_outliner_select_sync_from_all_tag(C);
+ }
return OPERATOR_FINISHED;
}
else {