Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2010-06-14 11:27:07 +0400
committerMatt Ebb <matt@mke3.net>2010-06-14 11:27:07 +0400
commita775843b11f2be78b4d0aba83d542583ab2776ae (patch)
tree14da51082ca22d3408b5c78fd1d6c093a334b624 /source/blender/editors/animation/anim_channels_defines.c
parentff561973622975f4000f7f1b5bdf3787009e58d5 (diff)
Use per-object icons in animation editor channel regions
makes it a bit easier to distinguish what you're looking for
Diffstat (limited to 'source/blender/editors/animation/anim_channels_defines.c')
-rw-r--r--source/blender/editors/animation/anim_channels_defines.c30
1 files changed, 26 insertions, 4 deletions
diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c
index 43a0c8de955..3f00c1abe68 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -592,10 +592,32 @@ static int acf_object_icon(bAnimListElem *ale)
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 */