[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17107] trunk/blender/source/blender/src: Few tiny cleanups in Action Editor code (comments only)

Joshua Leung aligorith at gmail.com
Sun Oct 19 05:41:50 CEST 2008


Revision: 17107
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17107
Author:   aligorith
Date:     2008-10-19 05:41:49 +0200 (Sun, 19 Oct 2008)

Log Message:
-----------
Few tiny cleanups in Action Editor code (comments only)

Modified Paths:
--------------
    trunk/blender/source/blender/src/drawaction.c
    trunk/blender/source/blender/src/editaction.c

Modified: trunk/blender/source/blender/src/drawaction.c
===================================================================
--- trunk/blender/source/blender/src/drawaction.c	2008-10-19 03:33:53 UTC (rev 17106)
+++ trunk/blender/source/blender/src/drawaction.c	2008-10-19 03:41:49 UTC (rev 17107)
@@ -1220,7 +1220,6 @@
 {
 	bAction *act = NULL;
 	Key *key = NULL;
-	bGPdata *gpd = NULL;
 	void *data;
 	short datatype;
 	
@@ -1259,7 +1258,7 @@
 			key = data;
 			break;
 		case ACTCONT_GPENCIL:
-			gpd = data;
+			/* currently, 'data' value for grease-pencil is G.curscreen! */
 			break;
 	}
 	
@@ -1599,7 +1598,7 @@
 			gla2DDrawTranslatePt(di, ak->cfra, ypos, &sc_x, &sc_y);
 			
 			/* draw using icons - old way which is slower but more proven */
-			if(ak->sel & SELECT) BIF_icon_draw_aspect(sc_x-7, sc_y-6, ICON_SPACE2, 1.0f);
+			if (ak->sel & SELECT) BIF_icon_draw_aspect(sc_x-7, sc_y-6, ICON_SPACE2, 1.0f);
 			else BIF_icon_draw_aspect(sc_x-7, sc_y-6, ICON_SPACE3, 1.0f);
 			
 			/* draw using OpenGL - slightly uglier but faster */

Modified: trunk/blender/source/blender/src/editaction.c
===================================================================
--- trunk/blender/source/blender/src/editaction.c	2008-10-19 03:33:53 UTC (rev 17106)
+++ trunk/blender/source/blender/src/editaction.c	2008-10-19 03:41:49 UTC (rev 17107)
@@ -529,9 +529,10 @@
 	/* check if filtering types are appropriate */
 	if ( !(filter_mode & (ACTFILTER_IPOKEYS|ACTFILTER_ONLYICU|ACTFILTER_ACTGROUPED)) ) 
 	{
-		/* special hack for fullscreen area (which must be this one then),
-		 * so we use the curarea->full as screen to get spaces from, since the
-		 * old (pre-fullscreen) screen was stored there...
+		/* special hack for fullscreen area (which must be this one then):
+		 * 	- we use the curarea->full as screen to get spaces from, since the
+		 * 	  old (pre-fullscreen) screen was stored there...
+		 *	- this is needed as all data would otherwise disappear
 		 */
 		if ((curarea->full) && (curarea->spacetype==SPACE_ACTION))
 			sc= curarea->full;





More information about the Bf-blender-cvs mailing list