From 465879f180119d4aeaf4849cc035f7ef88606f20 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 17 Aug 2022 19:06:17 +0200 Subject: [PATCH] [godot] Closes #2132, errornous connect call. --- spine-godot/spine_godot/SpineEditorPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-godot/spine_godot/SpineEditorPlugin.cpp b/spine-godot/spine_godot/SpineEditorPlugin.cpp index e367b37f2..c71424d20 100644 --- a/spine-godot/spine_godot/SpineEditorPlugin.cpp +++ b/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