diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-03 13:48:05 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-03 14:15:29 +0300 |
commit | 323543ae2ee1c1ad97545e93759ed4ff5d03a920 (patch) | |
tree | fec57aaacd1c50d452b1c0c55224ea21382268dd /source/blender/blenloader | |
parent | 65b4ebbbd5c497f732fab94bc4389533be22d4e3 (diff) |
Fix accidental changes to default preferences in recent startup.blend commit.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index f464769452a..423632277b3 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -45,6 +45,7 @@ #include "BKE_appdir.h" #include "BKE_brush.h" #include "BKE_colortools.h" +#include "BKE_idprop.h" #include "BKE_keyconfig.h" #include "BKE_layer.h" #include "BKE_library.h" @@ -73,6 +74,15 @@ void BLO_update_defaults_userpref_blend(void) U.flag &= ~USER_SCRIPT_AUTOEXEC_DISABLE; #endif + /* Clear addon preferences. */ + for (bAddon *addon = U.addons.first; addon; addon = addon->next) { + if (addon->prop) { + IDP_FreeProperty(addon->prop); + MEM_freeN(addon->prop); + addon->prop = NULL; + } + } + /* Transform tweak with single click and drag. */ U.flag |= USER_RELEASECONFIRM; @@ -90,6 +100,9 @@ void BLO_update_defaults_userpref_blend(void) U.transopts = USER_TR_TOOLTIPS; U.memcachelimit = 4096; + /* Auto perspective. */ + U.uiflag |= USER_AUTOPERSP; + /* Default to left click select. */ BKE_keyconfig_pref_set_select_mouse(&U, 0, true); } |