From d49ac0466f354369519f2399b9610253504b17b6 Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Wed, 22 Feb 2023 10:45:00 +0300 Subject: Fix `SpriteFrames` data loss on 3-to-4 conversion --- scene/resources/sprite_frames.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/resources/sprite_frames.cpp') 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 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]; -- cgit v1.2.3