Timeline: stabilize track order in snapshot output.

This commit is contained in:
Jonathan Moore Liles 2013-03-13 18:02:35 -07:00
parent eb639c9bfd
commit 0e66baaf21
1 changed files with 2 additions and 6 deletions

View File

@ -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();
}