lib/pipeline/base.rb in tracksperanto-1.7.5 vs lib/pipeline/base.rb in tracksperanto-1.8.0
- old
+ new
@@ -105,16 +105,16 @@
percent_complete = (50.0 / of_total) * offset
end
trackers = parser.parse(io_with_progress)
+ yield(percent_complete = 50.0, "Validating #{trackers.length} imported trackers") if block_given?
+
validate_trackers!(trackers)
- yield(percent_complete = 50.0, "Parsing complete, starting export for #{trackers.length} trackers") if block_given?
+ yield(percent_complete, "Starting export") if block_given?
percent_per_tracker = (100.0 - percent_complete) / trackers.length
-
- yield(percent_complete, "Starting export") if block_given?
# Use the width and height provided by the parser itself
processor.start_export(parser.width, parser.height)
trackers.each do | t |
kf_weight = percent_per_tracker / t.keyframes.length
\ No newline at end of file