From 74fcd5b5d44c1dac556c4e0d4b3ae813ffbf8b4d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 2 Mar 2010 17:17:34 +0000 Subject: fairly horrid feature so Colin can see at a glance what cameras are enabled for switching. draw timeline text 50% alpha when cameras are disabled. --- source/blender/editors/animation/anim_markers.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/blender/editors') diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index cf6011af2e2..a154164983e 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -38,6 +38,7 @@ #include "DNA_view2d_types.h" #include "DNA_userdef_types.h" #include "DNA_windowmanager_types.h" +#include "DNA_object_types.h" #include "RNA_access.h" #include "RNA_define.h" @@ -302,6 +303,16 @@ static void draw_marker(View2D *v2d, TimeMarker *marker, int cfra, int flag) y= 17.0f; } } + +#ifdef DURIAN_CAMERA_SWITCH + if(marker->camera && marker->camera->restrictflag & OB_RESTRICT_RENDER) { + float col[4]; + glGetFloatv(GL_CURRENT_COLOR, col); + col[3]= 0.4; + glColor4fv(col); + } +#endif + UI_DrawString(x, y, marker->name); } -- cgit v1.2.3