Browse Source

Remove error print in the Animation getter.

Pāvels Nadtočajevs 4 months ago
parent
commit
33af291421
1 changed files with 3 additions and 1 deletions
  1. 3 1
      scene/resources/animation.cpp

+ 3 - 1
scene/resources/animation.cpp

@@ -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;