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>2019-07-31 14:46:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-31 14:52:42 +0300
commitf7adb788287665092fa2811de2ba70341aab3294 (patch)
treeed4672f9e530066f258bbf4b7917660488d586ad /source/blender/blenloader/intern/versioning_defaults.c
parent07499c04f6126b325e1d6db68e430f36b514b355 (diff)
Cleanup: remove BLO_update_defaults_userpref_blend
Merge into BKE_blendfile_userdef_from_defaults
Diffstat (limited to 'source/blender/blenloader/intern/versioning_defaults.c')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 2a7a7eddb79..14230752d1f 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -40,55 +40,17 @@
#include "DNA_meshdata_types.h"
#include "BKE_appdir.h"
-#include "BKE_brush.h"
-#include "BKE_colorband.h"
#include "BKE_colortools.h"
-#include "BKE_idprop.h"
-#include "BKE_keyconfig.h"
#include "BKE_layer.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_node.h"
-#include "BKE_paint.h"
#include "BKE_screen.h"
-#include "BKE_studiolight.h"
#include "BKE_workspace.h"
#include "BLO_readfile.h"
/**
- * Update in-memory preferences with system specific values.
- */
-void BLO_update_defaults_userpref_blend(void)
-{
- /* default so DPI is detected automatically */
- U.dpi = 0;
- U.ui_scale = 1.0f;
-
-#ifdef WITH_PYTHON_SECURITY
- /* use alternative setting for security nuts
- * otherwise we'd need to patch the binary blob - startup.blend.c */
- U.flag |= USER_SCRIPT_AUTOEXEC_DISABLE;
-#else
- U.flag &= ~USER_SCRIPT_AUTOEXEC_DISABLE;
-#endif
-
- /* System-specific fonts directory. */
- BKE_appdir_font_folder_default(U.fontdir);
-
- U.memcachelimit = min_ii(BLI_system_memory_max_in_megabytes_int() / 2, 4096);
-
- /* Init weight paint range. */
- BKE_colorband_init(&U.coba_weight, true);
-
- /* Default to left click select. */
- BKE_keyconfig_pref_set_select_mouse(&U, 0, true);
-
- /* Default studio light. */
- BKE_studiolight_default(U.light_param, U.light_ambient);
-}
-
-/**
* Rename if the ID doesn't exist.
*/
static ID *rename_id_for_versioning(Main *bmain,