diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp index 688ef1a612..ef9a0ff8db 100644 --- a/scene/resources/animation.cpp +++ b/scene/resources/animation.cpp @@ -464,7 +464,9 @@ bool Animation::_get(const StringName &p_name, Variant &r_ret) const { String prop_name = p_name; if (p_name == SNAME("_compression")) { - ERR_FAIL_COND_V(!compression.enabled, false); + if (!compression.enabled) { + return false; + } Dictionary comp; comp["fps"] = compression.fps; Array bounds;