[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38785] trunk/blender/source/blender/ editors/interface/resources.c: fix [#28096] Custom gradient for weightpainting in mask mode not working properly.
Campbell Barton
ideasman42 at gmail.com
Thu Jul 28 14:17:24 CEST 2011
Revision: 38785
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38785
Author: campbellbarton
Date: 2011-07-28 12:17:24 +0000 (Thu, 28 Jul 2011)
Log Message:
-----------
fix [#28096] Custom gradient for weightpainting in mask mode not working properly.
Modified Paths:
--------------
trunk/blender/source/blender/editors/interface/resources.c
Modified: trunk/blender/source/blender/editors/interface/resources.c
===================================================================
--- trunk/blender/source/blender/editors/interface/resources.c 2011-07-28 11:33:34 UTC (rev 38784)
+++ trunk/blender/source/blender/editors/interface/resources.c 2011-07-28 12:17:24 UTC (rev 38785)
@@ -1115,10 +1115,11 @@
}
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 */
-
+
+ /* signal for derivedmesh to use colorband */
+ /* run incase this was on and is now off in the user prefs [#28096] */
+ vDM_ColorBand_store((U.flag & USER_CUSTOM_RANGE) ? (&U.coba_weight):NULL);
+
if (bmain->versionfile <= 191) {
strcpy(U.plugtexdir, U.textudir);
strcpy(U.sounddir, "/");
More information about the Bf-blender-cvs
mailing list