lib/export/pftrack_5.rb in tracksperanto-1.8.1 vs lib/export/pftrack_5.rb in tracksperanto-1.8.2
- old
+ new
@@ -8,13 +8,15 @@
def self.human_name
"PFTrack v5 .2dt file"
end
def end_tracker_segment
- block = [ "\n",
- @tracker_name.inspect, # "autoquotes"
- "Primary".inspect, # For primary/secondary cam in stereo pair
- @prev_tracker.length,
- @prev_tracker.join("\n") ]
- @io.puts block.join("\n")
+ @io.write("\n\n")
+ @io.puts(@tracker_name.inspect) # autoquotes
+ @io.puts("Primary".inspect) # For primary/secondary cam in stereo pair
+ @io.puts(@frame_count)
+
+ @tracker_io.rewind
+ @io.write(@tracker_io.read) until @tracker_io.eof?
+ @tracker_io.close!
end
end
\ No newline at end of file