Merge pull request #55412 from Rubonnek/fix-animation-node-blend-tree-menu-3x

This commit is contained in:
Rémi Verschelde 2021-11-29 14:03:24 +01:00 committed by GitHub
commit 2f0bf70172
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -969,7 +969,7 @@ AnimationNodeBlendTreeEditor::AnimationNodeBlendTreeEditor() {
add_node->set_text(TTR("Add Node..."));
graph->get_zoom_hbox()->move_child(add_node, 0);
add_node->get_popup()->connect("id_pressed", this, "_add_node");
add_node->connect("about_to_show", this, "_update_options_menu");
add_node->connect("about_to_show", this, "_update_options_menu", varray(false));
add_options.push_back(AddOption("Animation", "AnimationNodeAnimation"));
add_options.push_back(AddOption("OneShot", "AnimationNodeOneShot", 2));