From 2213b93521de4fc2221e448d4eef4bba8399b617 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Thu, 21 Nov 2013 00:29:29 +1300 Subject: Remove old drawing code for NLA Tracks --- source/blender/editors/space_nla/nla_draw.c | 40 ----------------------------- 1 file changed, 40 deletions(-) (limited to 'source/blender/editors/space_nla') diff --git a/source/blender/editors/space_nla/nla_draw.c b/source/blender/editors/space_nla/nla_draw.c index b4c52a5b1ca..c30862fb156 100644 --- a/source/blender/editors/space_nla/nla_draw.c +++ b/source/blender/editors/space_nla/nla_draw.c @@ -645,46 +645,6 @@ static void draw_nla_channel_list_gl(bAnimContext *ac, ListBase *anim_data, View /* determine what needs to be drawn */ switch (ale->type) { - case ANIMTYPE_NLATRACK: /* NLA Track */ - { - NlaTrack *nlt = (NlaTrack *)ale->data; - - /* 'solo' as the 'special' button? */ - if (nlt->flag & NLATRACK_SOLO) - special = ICON_SOLO_ON; - else - special = ICON_SOLO_OFF; - - /* if this track is active and we're tweaking it, don't draw these toggles */ - // TODO: need a special macro for this... - if (((nlt->flag & NLATRACK_ACTIVE) && (nlt->flag & NLATRACK_DISABLED)) == 0) { - if (nlt->flag & NLATRACK_MUTED) - mute = ICON_MUTE_IPO_ON; - else - mute = ICON_MUTE_IPO_OFF; - - if (EDITABLE_NLT(nlt)) - protect = ICON_UNLOCKED; - else - protect = ICON_LOCKED; - } - - /* is track enabled for solo drawing? */ - if ((adt) && (adt->flag & ADT_NLA_SOLO_TRACK)) { - if ((nlt->flag & NLATRACK_SOLO) == 0) { - /* tag for special non-solo handling; also hide the mute toggles */ - nonSolo = 1; - mute = 0; - } - } - - sel = SEL_NLT(nlt); - BLI_strncpy(name, nlt->name, sizeof(name)); - - /* draw manually still */ - do_draw = TRUE; - break; - } case ANIMTYPE_NLAACTION: /* NLA Action-Line */ { bAction *act = (bAction *)ale->data; -- cgit v1.2.3