From 3eaca525f21fb59b8b7ff60681563154e4ca3eb8 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 21 Dec 2008 10:33:24 +0000 Subject: 2.5 - Object name display in 3d-view now highlights on frames with keyframes again. * Re-exposed relevant parts of anim_keyframing.c code that doesn't have external dependencies. * Added get_active_posechannel() to blenkernel api for poses/posechannels to solve the only missing link I found. This should have been moved there ages ago! --- source/blender/editors/space_view3d/view3d_draw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_view3d/view3d_draw.c') diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index a4134aac449..d2f9831ec6e 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -70,6 +70,7 @@ #include "WM_api.h" +#include "ED_keyframing.h" #include "ED_screen.h" #include "ED_util.h" #include "ED_types.h" @@ -795,9 +796,9 @@ static void draw_selected_name(Scene *scene, Object *ob, View3D *v3d) } /* colour depends on whether there is a keyframe */ -// XXX if (id_frame_has_keyframe((ID *)ob, frame_to_float(CFRA), v3d->keyflags)) -// UI_ThemeColor(TH_VERTEX_SELECT); -// else + if (id_frame_has_keyframe((ID *)ob, frame_to_float(CFRA), v3d->keyflags)) + UI_ThemeColor(TH_VERTEX_SELECT); + else UI_ThemeColor(TH_TEXT_HI); } else { -- cgit v1.2.3