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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-05-17 16:02:12 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-05-17 16:02:12 +0300
commitfccb42c41f89d64bf0c7ebd75d315adba4a9a927 (patch)
tree3f02e6d2daca4d3b96248b04d6c955021978073c /source/blender/blenloader/intern/versioning_defaults.c
parent34d67601b716046cf15f3e808a92bc91d0af804f (diff)
Fix T63981: Factory default memory cache limit is 4096 MB (32bit builds)
very straightforward: initialize default to the same hard limit as the RNA properties. Annoying part is that it's not trivial to make RNA to use same BLI functions, so leaving that behind for now.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_defaults.c')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 61623a0cade..0e5e37e54a9 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -96,7 +96,7 @@ void BLO_update_defaults_userpref_blend(void)
/* Only enable tooltips translation by default,
* without actually enabling translation itself, for now. */
U.transopts = USER_TR_TOOLTIPS;
- U.memcachelimit = 4096;
+ U.memcachelimit = min_ii(BLI_system_memory_max_in_megabytes_int() / 2, 4096);
/* Auto perspective. */
U.uiflag |= USER_AUTOPERSP;