diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-02-22 10:45:00 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-02-22 11:17:10 +0300 |
commit | d49ac0466f354369519f2399b9610253504b17b6 (patch) | |
tree | c35f22ddfa1c790ba1dedda1d6a34c0b35a603a5 /scene | |
parent | e13fae1414b0369fdd3f51b4e3529fd3f272b0e1 (diff) |
Fix `SpriteFrames` data loss on 3-to-4 conversion
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/sprite_frames.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/sprite_frames.cpp b/scene/resources/sprite_frames.cpp index 818be38681..17aaf579dd 100644 --- a/scene/resources/sprite_frames.cpp +++ b/scene/resources/sprite_frames.cpp @@ -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]; |