[Bf-blender-cvs] [ead5656] GPencil_EditStrokes: Fix compiler warning from changing some types

Joshua Leung noreply at git.blender.org
Wed Oct 22 15:42:21 CEST 2014


Commit: ead565678b5c8c16b8cd1bc0d95324a843a4470d
Author: Joshua Leung
Date:   Thu Oct 23 01:59:46 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rBead565678b5c8c16b8cd1bc0d95324a843a4470d

Fix compiler warning from changing some types

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

M	source/blender/editors/gpencil/gpencil_buttons.c

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

diff --git a/source/blender/editors/gpencil/gpencil_buttons.c b/source/blender/editors/gpencil/gpencil_buttons.c
index a1715ed..6d740ce 100644
--- a/source/blender/editors/gpencil/gpencil_buttons.c
+++ b/source/blender/editors/gpencil/gpencil_buttons.c
@@ -145,7 +145,7 @@ static void gp_drawui_layer(uiLayout *layout, bGPdata *gpd, bGPDlayer *gpl, cons
 	/* active */
 	block = uiLayoutGetBlock(sub);
 	icon = (gpl->flag & GP_LAYER_ACTIVE) ? ICON_RADIOBUT_ON : ICON_RADIOBUT_OFF;
-	but = uiDefIconButBitI(block, TOG, GP_LAYER_ACTIVE, 0, icon, 0, 0, UI_UNIT_X, UI_UNIT_Y,
+	but = uiDefIconButBitS(block, TOG, GP_LAYER_ACTIVE, 0, icon, 0, 0, UI_UNIT_X, UI_UNIT_Y,
 	                       &gpl->flag, 0.0, 0.0, 0.0, 0.0, TIP_("Set active layer"));
 	uiButSetFunc(but, gp_ui_activelayer_cb, gpd, gpl);




More information about the Bf-blender-cvs mailing list