Fix 'Add Node...' menu entries in AnimationNodeBlendTreeEditor

This commit is contained in:
Wilson E. Alvarez 2021-11-28 08:40:26 -05:00
parent eb19618fd1
commit 1a2153eb0a
No known key found for this signature in database
GPG Key ID: A32174A3D2ED3F9E
1 changed files with 1 additions and 1 deletions

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));