diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-08-29 14:18:01 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-08-29 14:54:57 +0800 |
commit | 385a5b44aa32319bd918c19ec9c8f375444f4802 (patch) | |
tree | b91c8d52a4d835f4831a986c43dc459ae5b1ac2d /scene/resources | |
parent | c08e84af0d52fa9bce1145ba2c22c7452b7d8997 (diff) |
Improve documentation for `get_animation()`
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/animation_library.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/animation_library.cpp b/scene/resources/animation_library.cpp index 5f725b2fbe..427d418551 100644 --- a/scene/resources/animation_library.cpp +++ b/scene/resources/animation_library.cpp @@ -85,7 +85,7 @@ bool AnimationLibrary::has_animation(const StringName &p_name) const { } Ref<Animation> AnimationLibrary::get_animation(const StringName &p_name) const { - ERR_FAIL_COND_V(!animations.has(p_name), Ref<Animation>()); + ERR_FAIL_COND_V_MSG(!animations.has(p_name), Ref<Animation>(), vformat("Animation not found: \"%s\".", p_name)); return animations[p_name]; } |