lib/import/syntheyes.rb in tracksperanto-2.12.0 vs lib/import/syntheyes.rb in tracksperanto-3.0.0
- old
+ new
@@ -18,11 +18,11 @@
end
# Add the keyframe
k = Tracksperanto::Keyframe.new do |e|
e.frame = frame
- e.abs_x = convert_from_uv(width, x)
- e.abs_y = height - convert_from_uv(height, y) # Convert TL to BL
+ e.abs_x = convert_from_uv(x, width)
+ e.abs_y = height - convert_from_uv(y, height) # Convert TL to BL
end
@last_tracker.push(k)
report_progress("Adding keyframe #{frame} to #{name}")
end