lib/middleware/golden.rb in tracksperanto-1.1.1 vs lib/middleware/golden.rb in tracksperanto-1.2.0

- old
+ new

@@ -1,6 +1,13 @@ +# This middleware marks all trackers as being 100% accurate class Tracksperanto::Middleware::Golden < Tracksperanto::Middleware::Base attr_accessor :enabled + + def enabled + @enabled || false + end + def export_point(frame, float_x, float_y, float_residual) super(frame, float_x, float_y, (enabled ? 0.0 : float_residual)) end + end \ No newline at end of file