[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29442] trunk/blender/source/blender/ editors/animation/anim_channels_defines.c: Use per-object icons in animation editor channel regions

Matt Ebb matt at mke3.net
Mon Jun 14 09:27:07 CEST 2010


Revision: 29442
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29442
Author:   broken
Date:     2010-06-14 09:27:07 +0200 (Mon, 14 Jun 2010)

Log Message:
-----------
Use per-object icons in animation editor channel regions
makes it a bit easier to distinguish what you're looking for

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

Modified: trunk/blender/source/blender/editors/animation/anim_channels_defines.c
===================================================================
--- trunk/blender/source/blender/editors/animation/anim_channels_defines.c	2010-06-14 07:02:11 UTC (rev 29441)
+++ trunk/blender/source/blender/editors/animation/anim_channels_defines.c	2010-06-14 07:27:07 UTC (rev 29442)
@@ -592,10 +592,32 @@
 	Object *ob= base->object;
 	
 	/* icon depends on object-type */
-	if (ob->type == OB_ARMATURE)
-		return ICON_ARMATURE_DATA;
-	else	
-		return ICON_OBJECT_DATA;
+
+	switch (ob->type) {
+		case OB_LAMP:
+			return ICON_OUTLINER_OB_LAMP;
+		case OB_MESH: 
+			return ICON_OUTLINER_OB_MESH;
+		case OB_CAMERA: 
+			return ICON_OUTLINER_OB_CAMERA;
+		case OB_CURVE: 
+			return ICON_OUTLINER_OB_CURVE;
+		case OB_MBALL: 
+			return ICON_OUTLINER_OB_META;
+		case OB_LATTICE: 
+			return ICON_OUTLINER_OB_LATTICE;
+		case OB_ARMATURE: 
+			return ICON_OUTLINER_OB_ARMATURE;
+		case OB_FONT: 
+			return ICON_OUTLINER_OB_FONT;
+		case OB_SURF: 
+			return ICON_OUTLINER_OB_SURFACE;
+		case OB_EMPTY: 
+			return ICON_OUTLINER_OB_EMPTY;
+		default:
+			return ICON_OBJECT_DATA;
+	}
+	
 }
 
 /* name for object */





More information about the Bf-blender-cvs mailing list