[godot] Fix error message when deleting a mix in a skeleton data asset.

This commit is contained in:
Mario Zechner 2023-10-05 13:18:14 +02:00
parent 361639ed75
commit 5c0bb6e36b

View File

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