+ if(prev_part) {
+ long prev_part_time = time_msec - prev_part->start_time;
+ if(prev_part->draw_out) {
+ prev_part->draw_out(prev_part_time, t);
+ } else {
+ prev_part->draw(prev_part_time);
+ }
+ }
+
+ if(cur_part->draw_in) {
+ cur_part->draw_in(part_time, t);
+ } else {
+ cur_part->draw(part_time);
+ }
+ } else {
+ prev_part = 0;
+ cur_part->draw(part_time);
+ }