Bugfix: TimelineState not being stored correctly

This commit is contained in:
Joel Holdsworth 2009-03-28 20:21:07 +00:00
parent f90b575e16
commit 21da356818

View file

@ -367,8 +367,13 @@ TimelinePanel::load_state(weak_ptr<Sequence> sequence)
shared_ptr<Sequence> shared_sequence = sequence.lock();
if(shared_sequence)
return shared_ptr< timeline::TimelineState >(
new timeline::TimelineState(shared_sequence));
{
shared_ptr<timeline::TimelineState> new_state(
new timeline::TimelineState(shared_sequence));
timelineStates[sequence] = new_state;
return new_state;
}
return shared_ptr< timeline::TimelineState >();
}