From d6ccea541d029c503818381133a05a29031bd850 Mon Sep 17 00:00:00 2001 From: volzhs Date: Tue, 17 May 2016 22:48:36 +0900 Subject: [PATCH] remove old bind for add_frame of SpriteFrames it causes ``ERROR: Method already bound: SpriteFrames::add_frame`` --- scene/2d/animated_sprite.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/scene/2d/animated_sprite.cpp b/scene/2d/animated_sprite.cpp index f482f775c4..1d2f912784 100644 --- a/scene/2d/animated_sprite.cpp +++ b/scene/2d/animated_sprite.cpp @@ -233,8 +233,6 @@ void SpriteFrames::_bind_methods() { ObjectTypeDB::bind_method(_MD("set_animation_loop","anim","loop"),&SpriteFrames::set_animation_loop); ObjectTypeDB::bind_method(_MD("get_animation_loop","anim"),&SpriteFrames::get_animation_loop); - ObjectTypeDB::bind_method(_MD("add_frame","frame","atpos"),&SpriteFrames::add_frame,DEFVAL(-1)); - ObjectTypeDB::bind_method(_MD("add_frame","anim","frame","atpos"),&SpriteFrames::add_frame,DEFVAL(-1)); ObjectTypeDB::bind_method(_MD("get_frame_count","anim"),&SpriteFrames::get_frame_count); ObjectTypeDB::bind_method(_MD("get_frame","anim","idx"),&SpriteFrames::get_frame);