[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26730] trunk/blender/source/blender/ editors: Adding a field for debug type-names to animation channel types to facilitate easier debugging on channel errors .

Joshua Leung aligorith at gmail.com
Tue Feb 9 10:23:29 CET 2010


Revision: 26730
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26730
Author:   aligorith
Date:     2010-02-09 10:23:29 +0100 (Tue, 09 Feb 2010)

Log Message:
-----------
Adding a field for debug type-names to animation channel types to facilitate easier debugging on channel errors.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/anim_channels_defines.c
    trunk/blender/source/blender/editors/include/ED_anim_api.h

Modified: trunk/blender/source/blender/editors/animation/anim_channels_defines.c
===================================================================
--- trunk/blender/source/blender/editors/animation/anim_channels_defines.c	2010-02-09 08:38:45 UTC (rev 26729)
+++ trunk/blender/source/blender/editors/animation/anim_channels_defines.c	2010-02-09 09:23:29 UTC (rev 26730)
@@ -468,6 +468,8 @@
 /* all animation summary (DopeSheet only) type define */
 static bAnimChannelType ACF_SUMMARY = 
 {
+	"Summary",							/* type name */
+
 	acf_summary_color,					/* backdrop color */
 	acf_summary_backdrop,				/* backdrop */
 	acf_generic_indention_0,			/* indent level */
@@ -567,6 +569,8 @@
 /* scene type define */
 static bAnimChannelType ACF_SCENE = 
 {
+	"Scene",						/* type name */
+
 	acf_generic_root_color,			/* backdrop color */
 	acf_generic_root_backdrop,		/* backdrop */
 	acf_generic_indention_0,		/* indent level */
@@ -687,6 +691,8 @@
 /* object type define */
 static bAnimChannelType ACF_OBJECT = 
 {
+	"Object",						/* type name */
+	
 	acf_generic_root_color,			/* backdrop color */
 	acf_generic_root_backdrop,		/* backdrop */
 	acf_generic_indention_0,		/* indent level */
@@ -802,6 +808,8 @@
 /* group type define */
 static bAnimChannelType ACF_GROUP = 
 {
+	"Group",						/* type name */
+	
 	acf_group_color,				/* backdrop color */
 	acf_group_backdrop,				/* backdrop */
 	acf_generic_indention_0,		/* indent level */
@@ -886,6 +894,8 @@
 /* fcurve type define */
 static bAnimChannelType ACF_FCURVE = 
 {
+	"F-Curve",						/* type name */
+	
 	acf_generic_channel_color,		/* backdrop color */
 	acf_generic_channel_backdrop,	/* backdrop */
 	acf_generic_indention_flexible,	/* indent level */		// xxx rename this to f-curves only?
@@ -968,6 +978,8 @@
 /* object action expander type define */
 static bAnimChannelType ACF_FILLACTD = 
 {
+	"Ob-Action Filler",				/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1044,6 +1056,8 @@
 /* drivers expander type define */
 static bAnimChannelType ACF_FILLDRIVERS = 
 {
+	"Drivers Filler",				/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1088,6 +1102,8 @@
 /* materials expander type define */
 static bAnimChannelType ACF_FILLMATD= 
 {
+	"Materials Filler",				/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1132,6 +1148,8 @@
 /* particles expander type define */
 static bAnimChannelType ACF_FILLPARTD= 
 {
+	"Particles Filler",				/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1212,6 +1230,8 @@
 /* material expander type define */
 static bAnimChannelType ACF_DSMAT= 
 {
+	"Material Data Expander",		/* type name */
+	
 	acf_generic_channel_color,		/* backdrop color */
 	acf_generic_channel_backdrop,	/* backdrop */
 	acf_generic_indention_0,		/* indent level */
@@ -1286,6 +1306,8 @@
 /* lamp expander type define */
 static bAnimChannelType ACF_DSLAM= 
 {
+	"Lamp Expander",				/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1360,6 +1382,8 @@
 /* camera expander type define */
 static bAnimChannelType ACF_DSCAM= 
 {
+	"Camera Expander",				/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1444,6 +1468,8 @@
 /* curve expander type define */
 static bAnimChannelType ACF_DSCUR= 
 {
+	"Curve Expander",				/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1518,6 +1544,8 @@
 /* shapekey expander type define */
 static bAnimChannelType ACF_DSSKEY= 
 {
+	"Shape Key Expander",			/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1592,6 +1620,8 @@
 /* world expander type define */
 static bAnimChannelType ACF_DSWOR= 
 {
+	"World Expander",				/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1666,6 +1696,8 @@
 /* particle expander type define */
 static bAnimChannelType ACF_DSPART= 
 {
+	"Particle Data Expander",		/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1740,6 +1772,8 @@
 /* metaball expander type define */
 static bAnimChannelType ACF_DSMBALL= 
 {
+	"Metaball Expander",			/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1814,6 +1848,8 @@
 /* metaball expander type define */
 static bAnimChannelType ACF_DSARM= 
 {
+	"Armature Expander",			/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */
@@ -1888,6 +1924,8 @@
 /* node tree expander type define */
 static bAnimChannelType ACF_DSNTREE= 
 {
+	"Node Tree Expander",			/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */		// XXX this only works for compositing
@@ -1962,6 +2000,8 @@
 /* node tree expander type define */
 static bAnimChannelType ACF_DSMESH= 
 {
+	"Mesh Expander",				/* type name */
+	
 	acf_generic_dataexpand_color,	/* backdrop color */
 	acf_generic_dataexpand_backdrop,/* backdrop */
 	acf_generic_indention_1,		/* indent level */		// XXX this only works for compositing
@@ -2050,6 +2090,8 @@
 /* shapekey expander type define */
 static bAnimChannelType ACF_SHAPEKEY= 
 {
+	"Shape Key",					/* type name */
+	
 	acf_generic_channel_color,		/* backdrop color */
 	acf_generic_channel_backdrop,	/* backdrop */
 	acf_generic_indention_0,		/* indent level */

Modified: trunk/blender/source/blender/editors/include/ED_anim_api.h
===================================================================
--- trunk/blender/source/blender/editors/include/ED_anim_api.h	2010-02-09 08:38:45 UTC (rev 26729)
+++ trunk/blender/source/blender/editors/include/ED_anim_api.h	2010-02-09 09:23:29 UTC (rev 26730)
@@ -329,6 +329,10 @@
 
 /* Drawing, mouse handling, and flag setting behaviour... */
 typedef struct bAnimChannelType {
+	/* type data */
+		/* name of the channel type, for debugging */
+	char *channel_type_name;
+	
 	/* drawing */
 		/* get RGB color that is used to draw the majority of the backdrop */
 	void (*get_backdrop_color)(bAnimContext *ac, bAnimListElem *ale, float *color);





More information about the Bf-blender-cvs mailing list