[Bf-blender-cvs] [ced595a] master: Fix T39087: Weight Paint, custom color ranges don't update in viewport

Campbell Barton noreply at git.blender.org
Tue Mar 11 11:21:47 CET 2014


Commit: ced595a37d373e9a27f2ac0ed24f975dfdab4818
Author: Campbell Barton
Date:   Tue Mar 11 21:19:59 2014 +1100
https://developer.blender.org/rBced595a37d373e9a27f2ac0ed24f975dfdab4818

Fix T39087: Weight Paint, custom color ranges don't update in viewport

===================================================================

M	source/blender/editors/interface/interface_templates.c

===================================================================

diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index dcfb2e5..cdaecc6 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -1524,6 +1524,8 @@ static void colorband_buttons_layout(uiLayout *layout, uiBlock *block, ColorBand
 
 			row = uiLayoutRow(layout, false);
 			uiItemR(row, &ptr, "color", 0, "", ICON_NONE);
+			bt = block->buttons.last;
+			uiButSetNFunc(bt, rna_update_cb, MEM_dupallocN(cb), NULL);
 		}
 		else {
 			split = uiLayoutSplit(layout, 0.5f, false);
@@ -1539,6 +1541,8 @@ static void colorband_buttons_layout(uiLayout *layout, uiBlock *block, ColorBand
 
 			row = uiLayoutRow(split, false);
 			uiItemR(row, &ptr, "color", 0, "", ICON_NONE);
+			bt = block->buttons.last;
+			uiButSetNFunc(bt, rna_update_cb, MEM_dupallocN(cb), NULL);
 		}
 	}
 }




More information about the Bf-blender-cvs mailing list