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:
authorCampbell Barton <ideasman42@gmail.com>2014-04-03 04:29:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-03 04:29:45 +0400
commitdd54b721c6ff3e0614f771e76fb1ccfbb78f6d67 (patch)
tree3c73cd720546625460c90bd5d9b6290c169c07c8 /source/blender/windowmanager/intern/wm_operators.c
parent726628518d9c7d30cf5b367992395d74c5cc65af (diff)
Add load_ui to WM_OT_read_homefile
Useful for implementing templates. Patch D423 by Gaia Clary
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 50b0fa2fa79..4ff987d1094 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -2146,6 +2146,11 @@ static void WM_OT_read_homefile(wmOperatorType *ot)
"Path to an alternative start-up file");
RNA_def_property_flag(prop, PROP_HIDDEN);
+ /* So scripts can use an alternative start-up file without the UI */
+ prop = RNA_def_boolean(ot->srna, "load_ui", true, "Load UI",
+ "Load user interface setup from the .blend file");
+ RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
+
/* ommit poll to run in background mode */
}