[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48294] trunk/blender/source/blender/ editors/gpencil/gpencil_buttons.c: Bugfix [#31930] DopeSheet - Grease Pencil mode collapses visible channels when

Joshua Leung aligorith at gmail.com
Tue Jun 26 02:35:14 CEST 2012


Revision: 48294
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48294
Author:   aligorith
Date:     2012-06-26 00:35:05 +0000 (Tue, 26 Jun 2012)
Log Message:
-----------
Bugfix [#31930] DopeSheet - Grease Pencil mode collapses visible channels when
switch channel

This was caused by a typo, which would end up toggling the expanded status of
the Grease Pencil datablock (gpd->flag & 4) instead of the layer active status
(gpl->flag & 4).

Modified Paths:
--------------
    trunk/blender/source/blender/editors/gpencil/gpencil_buttons.c

Modified: trunk/blender/source/blender/editors/gpencil/gpencil_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/gpencil/gpencil_buttons.c	2012-06-25 23:35:29 UTC (rev 48293)
+++ trunk/blender/source/blender/editors/gpencil/gpencil_buttons.c	2012-06-26 00:35:05 UTC (rev 48294)
@@ -126,7 +126,7 @@
 	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,
-	                       &gpd->flag, 0.0, 0.0, 0.0, 0.0, TIP_("Set active layer"));
+	                       &gpl->flag, 0.0, 0.0, 0.0, 0.0, TIP_("Set active layer"));
 	uiButSetFunc(but, gp_ui_activelayer_cb, gpd, gpl);
 	
 	/* locked */




More information about the Bf-blender-cvs mailing list