lib/import/flame_stabilizer.rb in tracksperanto-2.8.0 vs lib/import/flame_stabilizer.rb in tracksperanto-2.8.1
- old
+ new
@@ -17,13 +17,15 @@
report_progress("Extracting setup size")
self.width, self.height = extract_width_and_height_from_stream(@io)
report_progress("Extracting all animation channels")
channels, names = extract_channels_from_stream(@io)
- raise "A channel was nil" if channels.find{|e| e.nil? }
-
- report_progress("Assembling tracker curves from channels")
- scavenge_trackers_from_channels(channels, names) {|t| yield(t) }
+ begin
+ report_progress("Assembling tracker curves from channels")
+ scavenge_trackers_from_channels(channels, names) {|t| yield(t) }
+ ensure
+ channels.clear
+ end
end
private
def extract_width_and_height_from_stream(io)
w, h = nil, nil
\ No newline at end of file