1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix Edit function button

This commit is contained in:
Swarnim Arun
2019-09-28 02:16:11 +05:30
parent d0e45e78a4
commit 4967e4a913

View File

@@ -1350,7 +1350,7 @@ void VisualScriptEditor::_member_button(Object *p_item, int p_column, int p_butt
return; //or crash because it will become invalid
}
} else if (ti->get_parent() == root->get_children()) {
selected = ti->get_metadata(0);
selected = ti->get_text(0);
function_name_edit->set_position(Input::get_singleton()->get_mouse_position() - Vector2(60, -10));
function_name_edit->popup();
}