lib/pipeline/base.rb in tracksperanto-1.2.6 vs lib/pipeline/base.rb in tracksperanto-1.3.0
- old
+ new
@@ -105,13 +105,13 @@
processor.start_export(parser.width, parser.height)
trackers.each do | t |
kf_weight = percent_per_tracker / t.keyframes.length
points += 1
processor.start_tracker_segment(t.name)
- t.each do | kf |
+ t.each_with_index do | kf, idx |
keyframes += 1
processor.export_point(kf.frame, kf.abs_x, kf.abs_y, kf.residual)
- yield(percent_complete += kf_weight, "Writing keyframe") if block_given?
+ yield(percent_complete += kf_weight, "Writing keyframe #{idx+1} of #{t.length}") if block_given?
end
processor.end_tracker_segment
end
processor.end_export
\ No newline at end of file