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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-16 20:44:16 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-16 21:25:17 +0300
commit69dcdf5e122b171556bfcfa4a45b0e3d3e2ee4b3 (patch)
treeea4b44abe4d4be93ec52c29aea0fccfc1c5d899b /source/blender/blenloader
parent1192fd58a5b8bb350f658fb28d3bb34ee24b37e9 (diff)
Fix broken weight painting colorband in default preferences.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 26552638dde..6eb5bf23a6c 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -44,6 +44,7 @@
#include "BKE_appdir.h"
#include "BKE_brush.h"
+#include "BKE_colorband.h"
#include "BKE_colortools.h"
#include "BKE_idprop.h"
#include "BKE_keyconfig.h"
@@ -103,6 +104,9 @@ void BLO_update_defaults_userpref_blend(void)
/* Auto perspective. */
U.uiflag |= USER_AUTOPERSP;
+ /* 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);
}