From 0e66baaf21cac1bfc1e84a58852b6a7c3d1c3851 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 13 Mar 2013 18:02:35 -0700 Subject: [PATCH] Timeline: stabilize track order in snapshot output. --- timeline/src/Timeline.C | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/timeline/src/Timeline.C b/timeline/src/Timeline.C index 9fb5173..99abcdf 100644 --- a/timeline/src/Timeline.C +++ b/timeline/src/Timeline.C @@ -275,6 +275,8 @@ Timeline::snapshot ( void ) punch_cursor_track->log_children(); play_cursor_track->log_children(); + update_track_order(); + for ( int i = 0; i < tracks->children(); ++i ) { ((Track*)tracks->child( i ))->log_children(); @@ -1879,8 +1881,6 @@ Timeline::add_track ( Track *track ) tracks->add( track ); -// update_track_order(); - /* FIXME: why is this necessary? doesn't the above add do DAMAGE_CHILD? */ redraw(); @@ -1894,8 +1894,6 @@ Timeline::insert_track ( Track *track, int n ) tracks->insert( *track, n ); - update_track_order(); - tracks->redraw(); /* FIXME: why is this necessary? doesn't the above add do DAMAGE_CHILD? */ @@ -1957,8 +1955,6 @@ Timeline::remove_track ( Track *track ) /* FIXME: what to do about track contents? */ tracks->remove( track ); - update_track_order(); - /* FIXME: why is this necessary? doesn't the above add do DAMAGE_CHILD? */ redraw(); }