1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Fix SpriteFrames data loss on 3-to-4 conversion

This commit is contained in:
Danil Alexeev
2023-02-22 10:45:00 +03:00
parent e13fae1414
commit d49ac0466f
3 changed files with 5 additions and 3 deletions

View File

@@ -201,6 +201,7 @@ void SpriteFrames::_set_animations(const Array &p_animations) {
anim.loop = d["loop"];
Array frames = d["frames"];
for (int j = 0; j < frames.size(); j++) {
#ifndef DISABLE_DEPRECATED
// For compatibility.
Ref<Resource> res = frames[j];
if (res.is_valid()) {
@@ -208,6 +209,7 @@ void SpriteFrames::_set_animations(const Array &p_animations) {
anim.frames.push_back(frame);
continue;
}
#endif
Dictionary f = frames[j];