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, "/");

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to