lib/import/match_mover.rb in tracksperanto-2.8.6 vs lib/import/match_mover.rb in tracksperanto-2.9.0

- old
+ new

@@ -1,5 +1,6 @@ +# -*- encoding : utf-8 -*- class Tracksperanto::Import::MatchMover < Tracksperanto::Import::Base def self.autodetects_size? true end @@ -40,11 +41,11 @@ tracker_name = start_line.scan(/\"([^\"]+)\"/).flatten[0] report_progress("Extracting tracker #{tracker_name}") t = Tracksperanto::Tracker.new(:name => tracker_name) while(line = io.gets) do return t if line =~ /\}/ - t.keyframes.push(extract_key(line.strip)) if line =~ /^(\s+?)(\d)/ + t.push(extract_key(line.strip)) if line =~ /^(\s+?)(\d)/ report_progress("Extracting keyframe") end raise "Track didn't close" end @@ -63,6 +64,6 @@ def extract_residual(residual_segment) # Parse to the first opening brace and pick the residual from there float_pat = /([\-\d\.]+)/ 1 - residual_segment.scan(float_pat).flatten.shift.to_f end -end \ No newline at end of file +end