summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorIgnacio Roldán Etcheverry <neikeq@users.noreply.github.com>2019-04-06 17:16:20 +0200
committerGitHub <noreply@github.com>2019-04-06 17:16:20 +0200
commit278aeb114269d3e374960ec93d435c8a2524c75b (patch)
treebb37b12db291604df52c68a0a127ab92b2b7edbf /scene/2d
parent74719b8748d338c143a62b3659693af0d82b784c (diff)
parent2f3328a039ac31368dfc9d93ae95702c0d9db827 (diff)
Merge pull request #27729 from neikeq/fix-wrong-classdb-binds
Fix wrong method binds and registered class
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/animated_sprite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/animated_sprite.cpp b/scene/2d/animated_sprite.cpp
index 7a50574be2..932db8f001 100644
--- a/scene/2d/animated_sprite.cpp
+++ b/scene/2d/animated_sprite.cpp
@@ -679,7 +679,7 @@ void AnimatedSprite::_bind_methods() {
ClassDB::bind_method(D_METHOD("_set_playing", "playing"), &AnimatedSprite::_set_playing);
ClassDB::bind_method(D_METHOD("_is_playing"), &AnimatedSprite::_is_playing);
- ClassDB::bind_method(D_METHOD("play", "anim", "backwards"), &AnimatedSprite::play, DEFVAL(StringName()));
+ ClassDB::bind_method(D_METHOD("play", "anim", "backwards"), &AnimatedSprite::play, DEFVAL(StringName()), DEFVAL(false));
ClassDB::bind_method(D_METHOD("stop"), &AnimatedSprite::stop);
ClassDB::bind_method(D_METHOD("is_playing"), &AnimatedSprite::is_playing);