Commit: 323543ae2ee1c1ad97545e93759ed4ff5d03a920 Author: Brecht Van Lommel Date: Thu Jan 3 11:48:05 2019 +0100 Branches: master https://developer.blender.org/rB323543ae2ee1c1ad97545e93759ed4ff5d03a920
Fix accidental changes to default preferences in recent startup.blend commit. =================================================================== M source/blender/blenloader/intern/versioning_defaults.c =================================================================== 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); } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs