Merge pull request #50342 from Chaosus/vs_fix_function

Fix creating a new function in visual scripts
This commit is contained in:
Rémi Verschelde 2021-07-10 15:13:33 +02:00 committed by GitHub
commit 7c432c923b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1428,7 +1428,7 @@ void VisualScriptEditor::_member_button(Object *p_item, int p_column, int p_butt
undo_redo->add_do_method(script.ptr(), "add_function", name, fn_id);
undo_redo->add_do_method(script.ptr(), "add_node", fn_id, func_node, pos);
undo_redo->add_undo_method(script.ptr(), "remove_function", name);
undo_redo->add_do_method(script.ptr(), "remove_node", fn_id);
undo_redo->add_undo_method(script.ptr(), "remove_node", fn_id);
undo_redo->add_do_method(this, "_update_members");
undo_redo->add_undo_method(this, "_update_members");
undo_redo->add_do_method(this, "_update_graph");