87573e92dc
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.
(cherry picked from commit
|
||
---|---|---|
.. | ||
atlas_import_failed.xpm | ||
editor_import_collada.cpp | ||
editor_import_collada.h | ||
editor_import_plugin.cpp | ||
editor_import_plugin.h | ||
editor_scene_importer_gltf.cpp | ||
editor_scene_importer_gltf.h | ||
resource_importer_bitmask.cpp | ||
resource_importer_bitmask.h | ||
resource_importer_csv.cpp | ||
resource_importer_csv.h | ||
resource_importer_csv_translation.cpp | ||
resource_importer_csv_translation.h | ||
resource_importer_image.cpp | ||
resource_importer_image.h | ||
resource_importer_layered_texture.cpp | ||
resource_importer_layered_texture.h | ||
resource_importer_obj.cpp | ||
resource_importer_obj.h | ||
resource_importer_scene.cpp | ||
resource_importer_scene.h | ||
resource_importer_texture.cpp | ||
resource_importer_texture.h | ||
resource_importer_texture_atlas.cpp | ||
resource_importer_texture_atlas.h | ||
resource_importer_wav.cpp | ||
resource_importer_wav.h | ||
SCsub |