[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12510] trunk/blender/source/blender/src/ usiblender.c: Small fix for feature 'custom weight paint range': the range was not

Ton Roosendaal ton at blender.org
Wed Nov 7 12:14:53 CET 2007


Revision: 12510
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12510
Author:   ton
Date:     2007-11-07 12:14:52 +0100 (Wed, 07 Nov 2007)

Log Message:
-----------
Small fix for feature 'custom weight paint range': the range was not
initialized on starting Blender.

Modified Paths:
--------------
    trunk/blender/source/blender/src/usiblender.c

Modified: trunk/blender/source/blender/src/usiblender.c
===================================================================
--- trunk/blender/source/blender/src/usiblender.c	2007-11-07 06:10:27 UTC (rev 12509)
+++ trunk/blender/source/blender/src/usiblender.c	2007-11-07 11:14:52 UTC (rev 12510)
@@ -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 @@
 	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, "/");





More information about the Bf-blender-cvs mailing list