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:
authorTon Roosendaal <ton@blender.org>2007-11-07 14:14:52 +0300
committerTon Roosendaal <ton@blender.org>2007-11-07 14:14:52 +0300
commit2480173125f762861f9a69db8ecde736735f1f71 (patch)
tree1b3c7e6eb52f7747b4532b8f815983ab8c5852d1
parent94e8a05ba6ebf490586a14ba7ca3f7d7ab8ec824 (diff)
Small fix for feature 'custom weight paint range': the range was not
initialized on starting Blender.
-rw-r--r--source/blender/src/usiblender.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c
index 3b22b84ad99..3efd9d8de9a 100644
--- a/source/blender/src/usiblender.c
+++ b/source/blender/src/usiblender.c
@@ -74,6 +74,7 @@
#include "BKE_blender.h"
#include "BKE_curve.h"
#include "BKE_displist.h"
+#include "BKE_DerivedMesh.h"
#include "BKE_exotic.h"
#include "BKE_font.h"
#include "BKE_global.h"
@@ -193,6 +194,9 @@ static void init_userdef_file(void)
if(U.pad_rot_angle==0)
U.pad_rot_angle= 15;
+ if(U.flag & USER_CUSTOM_RANGE)
+ vDM_ColorBand_store(&U.coba_weight); /* signal for derivedmesh to use colorband */
+
if (G.main->versionfile <= 191) {
strcpy(U.plugtexdir, U.textudir);
strcpy(U.sounddir, "/");