diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-03-02 20:17:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-03-02 20:17:34 +0300 |
commit | 74fcd5b5d44c1dac556c4e0d4b3ae813ffbf8b4d (patch) | |
tree | e16447de3185734772de84c0df6a15197028a7e6 /source/blender/editors/animation/anim_markers.c | |
parent | ab2f7b5005561e7885f48371186d67f67f4efe16 (diff) |
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.
Diffstat (limited to 'source/blender/editors/animation/anim_markers.c')
-rw-r--r-- | source/blender/editors/animation/anim_markers.c | 11 |
1 files changed, 11 insertions, 0 deletions
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); } |