Outliner: fix sync select on read file without loading UI
Tag for a complete sync when loading a file with load UI disabled.
This commit is contained in:
parent
5b96dc2381
commit
f4424727de
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue