|
@@ -464,7 +464,9 @@ bool Animation::_get(const StringName &p_name, Variant &r_ret) const {
|
|
String prop_name = p_name;
|
|
String prop_name = p_name;
|
|
|
|
|
|
if (p_name == SNAME("_compression")) {
|
|
if (p_name == SNAME("_compression")) {
|
|
- ERR_FAIL_COND_V(!compression.enabled, false);
|
|
|
|
|
|
+ if (!compression.enabled) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
Dictionary comp;
|
|
Dictionary comp;
|
|
comp["fps"] = compression.fps;
|
|
comp["fps"] = compression.fps;
|
|
Array bounds;
|
|
Array bounds;
|