浏览代码

remove old bind for add_frame of SpriteFrames

it causes ``ERROR: Method already bound: SpriteFrames::add_frame``
volzhs 9 年之前
父节点
当前提交
d6ccea541d
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      scene/2d/animated_sprite.cpp

+ 0 - 2
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);