diff options
| author | Tomasz Chabora <kobewi4e@gmail.com> | 2019-08-08 22:11:48 +0200 |
|---|---|---|
| committer | Tomasz Chabora <kobewi4e@gmail.com> | 2019-08-09 13:54:52 +0200 |
| commit | af5e0fff66d55d07a7910bcd7f170da2f952f7cb (patch) | |
| tree | cdf217de6cd3ce1c038b7d159d06635a641105f2 /scene/2d/animated_sprite.cpp | |
| parent | d2a67c9c1fdee470064f2b3c5750c98f174b5399 (diff) | |
| download | redot-engine-af5e0fff66d55d07a7910bcd7f170da2f952f7cb.tar.gz | |
Remove ERR_EXPLAIN from scene/* code
Diffstat (limited to 'scene/2d/animated_sprite.cpp')
| -rw-r--r-- | scene/2d/animated_sprite.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scene/2d/animated_sprite.cpp b/scene/2d/animated_sprite.cpp index 83cc1eeb46..0b20b781f0 100644 --- a/scene/2d/animated_sprite.cpp +++ b/scene/2d/animated_sprite.cpp @@ -642,9 +642,8 @@ void AnimatedSprite::_reset_timeout() { void AnimatedSprite::set_animation(const StringName &p_animation) { - ERR_EXPLAIN(vformat("There is no animation with name '%s'.", p_animation)); - ERR_FAIL_COND(frames == NULL); - ERR_FAIL_COND(frames->get_animation_names().find(p_animation) == -1); + ERR_FAIL_COND_MSG(frames == NULL, vformat("There is no animation with name '%s'.", p_animation)); + ERR_FAIL_COND_MSG(frames->get_animation_names().find(p_animation) == -1, vformat("There is no animation with name '%s'.", p_animation)); if (animation == p_animation) return; |
