Made animation parabolic

This commit is contained in:
Joel Holdsworth 2009-01-03 17:22:12 +00:00
parent b5d7539b10
commit 932697b836

View file

@ -245,7 +245,8 @@ TimelineLayoutHelper::layout_headers_recursive(
// Now we have the branch_height, obscure tracks according to
// the animation state
offset = offset - branch_height + branch_height * animation_state / Track::MaxExpandAnimation;
const float a = (1.0f - (float)animation_state / (float)Track::MaxExpandAnimation);
offset = offset - branch_height * a * a;
TrackTree::pre_order_iterator descendant_iterator(iterator);
descendant_iterator++;
@ -263,7 +264,6 @@ TimelineLayoutHelper::layout_headers_recursive(
headerBoxes.erase(track);
}
// Make sure the global animation state includes this branch's
// animation state
common_animation_state = max(