mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 01:51:10 +00:00
[Scene] Add SceneStringNames::id_pressed
This commit is contained in:
parent
505da68b26
commit
755a0efbb6
72 changed files with 163 additions and 161 deletions
|
|
@ -1193,7 +1193,7 @@ AnimationNodeBlendTreeEditor::AnimationNodeBlendTreeEditor() {
|
|||
graph->get_menu_hbox()->add_child(add_node);
|
||||
add_node->set_text(TTR("Add Node..."));
|
||||
graph->get_menu_hbox()->move_child(add_node, 0);
|
||||
add_node->get_popup()->connect("id_pressed", callable_mp(this, &AnimationNodeBlendTreeEditor::_add_node));
|
||||
add_node->get_popup()->connect(SceneStringName(id_pressed), callable_mp(this, &AnimationNodeBlendTreeEditor::_add_node));
|
||||
add_node->get_popup()->connect("popup_hide", callable_mp(this, &AnimationNodeBlendTreeEditor::_popup_hide), CONNECT_DEFERRED);
|
||||
add_node->connect("about_to_popup", callable_mp(this, &AnimationNodeBlendTreeEditor::_update_options_menu).bind(false));
|
||||
add_node->set_disabled(read_only);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue