You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
PopupMenu now emits both index_pressed and id_pressed instead of item_pressed, closes #3188
This commit is contained in:
@@ -2017,7 +2017,7 @@ CustomPropertyEditor::CustomPropertyEditor() {
|
||||
type_button = memnew( MenuButton );
|
||||
add_child(type_button);
|
||||
type_button->hide();
|
||||
type_button->get_popup()->connect("item_pressed", this,"_type_create_selected");
|
||||
type_button->get_popup()->connect("id_pressed", this,"_type_create_selected");
|
||||
|
||||
|
||||
scene_tree = memnew( SceneTreeDialog );
|
||||
@@ -2039,7 +2039,7 @@ CustomPropertyEditor::CustomPropertyEditor() {
|
||||
|
||||
menu = memnew(PopupMenu);
|
||||
add_child(menu);
|
||||
menu->connect("item_pressed",this,"_menu_option");
|
||||
menu->connect("id_pressed",this,"_menu_option");
|
||||
|
||||
evaluator = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user