diff options
author | ArdaE <ArdaE@users.noreply.github.com> | 2021-03-18 01:50:28 -0700 |
---|---|---|
committer | ArdaE <ArdaE@users.noreply.github.com> | 2021-03-18 15:55:31 -0700 |
commit | 6770a9413b8a4ec58414054b24469e44b1334540 (patch) | |
tree | 9095b98c222d60b33c6b9fba7a33a4aac2f45521 /scene/debugger | |
parent | c34b1107848423ac7ebc33273aa3d380a38792cf (diff) |
GLTF import: Prevent significant numerical errors in keyframe times
Keyframe times shift slowly in imported animations, starting with a zero shift
at the beginning and increasing and becoming erratic slowly farther into an
animation, reaching significant levels at times after about 3 minutes into an
animation. This commit fixes the issue by increasing the precision of the
floating point numbers used for keyframe time calculations. Only the most
significant cases that cause fast accumulation of errors over a short animation
duration are fixed. Other cases that would have a marginal benefit from
switching to double precision numbers are left for another PR/further analysis.
Note that this change has no impact on the runtime performance of games/apps
created using Godot. It only affects the GLTF importer.
Fixes #47127.
Diffstat (limited to 'scene/debugger')
0 files changed, 0 insertions, 0 deletions