summaryrefslogtreecommitdiffstats
path: root/scene/animation/animation_player.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-08-29 09:49:49 +0200
committerGitHub <noreply@github.com>2022-08-29 09:49:49 +0200
commit8c0deb2c6e8798cb059902af1babd2d07b3c31b3 (patch)
treeb91c8d52a4d835f4831a986c43dc459ae5b1ac2d /scene/animation/animation_player.cpp
parentc08e84af0d52fa9bce1145ba2c22c7452b7d8997 (diff)
parent385a5b44aa32319bd918c19ec9c8f375444f4802 (diff)
downloadredot-engine-8c0deb2c6e8798cb059902af1babd2d07b3c31b3.tar.gz
Merge pull request #65019 from timothyqiu/anim-docs-null
Improve documentation for `get_animation()`
Diffstat (limited to 'scene/animation/animation_player.cpp')
-rw-r--r--scene/animation/animation_player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp
index 0e2598cbc7..073f61bfdd 100644
--- a/scene/animation/animation_player.cpp
+++ b/scene/animation/animation_player.cpp
@@ -1501,7 +1501,7 @@ bool AnimationPlayer::has_animation(const StringName &p_name) const {
}
Ref<Animation> AnimationPlayer::get_animation(const StringName &p_name) const {
- ERR_FAIL_COND_V_MSG(!animation_set.has(p_name), Ref<Animation>(), vformat("Animation not found: %s.", p_name));
+ ERR_FAIL_COND_V_MSG(!animation_set.has(p_name), Ref<Animation>(), vformat("Animation not found: \"%s\".", p_name));
const AnimationData &data = animation_set[p_name];