lib/middleware/shift.rb in tracksperanto-2.2.2 vs lib/middleware/shift.rb in tracksperanto-2.2.4
- old
+ new
@@ -2,9 +2,9 @@
class Tracksperanto::Middleware::Shift < Tracksperanto::Middleware::Base
attr_accessor :x_shift, :y_shift
cast_to_float :x_shift, :y_shift
def export_point(frame, float_x, float_y, float_residual)
- super(frame, float_x + (@x_shift || 0), float_y + (@y_shift || 0), float_residual)
+ super(frame, float_x + @x_shift.to_f, float_y + @y_shift.to_f, float_residual)
end
end
\ No newline at end of file