Fix for factory settings loading without UI

When load-ui was disabled, resetting factory settings kept existing UI too.
This commit is contained in:
Campbell Barton 2015-11-12 21:52:25 +11:00
parent 6cbccdd31c
commit 2d96666a71
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}