summaryrefslogtreecommitdiff
path: root/scene/debugger
diff options
context:
space:
mode:
authorArdaE <ArdaE@users.noreply.github.com>2021-03-18 01:50:28 -0700
committerArdaE <ArdaE@users.noreply.github.com>2021-03-18 15:55:31 -0700
commit6770a9413b8a4ec58414054b24469e44b1334540 (patch)
tree9095b98c222d60b33c6b9fba7a33a4aac2f45521 /scene/debugger
parentc34b1107848423ac7ebc33273aa3d380a38792cf (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