Fix for factory settings loading without UI
When load-ui was disabled, resetting factory settings kept existing UI too.
This commit is contained in:
parent
6cbccdd31c
commit
2d96666a71
|
@ -768,6 +768,10 @@ int wm_homefile_read_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* always load UI for factory settings (prefs will re-init) */
|
||||
G.fileflags &= ~G_FILE_NO_UI;
|
||||
}
|
||||
|
||||
return wm_homefile_read(C, op->reports, from_memory, filepath) ? OPERATOR_FINISHED : OPERATOR_CANCELLED;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue