summaryrefslogtreecommitdiffstats
path: root/scene/resources/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/animation.cpp')
-rw-r--r--scene/resources/animation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp
index 7078d60de5..1ab6e714a8 100644
--- a/scene/resources/animation.cpp
+++ b/scene/resources/animation.cpp
@@ -427,6 +427,11 @@ bool Animation::_set(const StringName &p_name, const Variant &p_value) {
} else {
return false;
}
+#ifndef DISABLE_DEPRECATED
+ } else if (prop_name == "loop" && p_value.operator bool()) { // Compatibility with Godot 3.x.
+ loop_mode = Animation::LoopMode::LOOP_LINEAR;
+ return true;
+#endif // DISABLE_DEPRECATED
} else {
return false;
}