Browse Source

[godot] Closes #2132, errornous connect call.

Mario Zechner 3 years ago
parent
commit
465879f180
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-godot/spine_godot/SpineEditorPlugin.cpp

+ 1 - 1
spine-godot/spine_godot/SpineEditorPlugin.cpp

@@ -217,7 +217,7 @@ void SpineEditorPropertyAnimationMixes::update_property() {
 		hbox->add_child(delete_button);
 		delete_button->set_text("Remove");
 #if VERSION_MAJOR > 3
-		delete_button->connect("pressed", callable_mp(this, &SpineEditorPropertyAnimationMixes::delete_mix), i);
+		delete_button->connect("pressed", callable_mp(this, &SpineEditorPropertyAnimationMixes::delete_mix).bind(varray(i)));
 #else
 		delete_button->connect("pressed", this, "delete_mix", varray(i));
 #endif