You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
VS: Give the generic search the current base type.
This commit is contained in:
@@ -1330,9 +1330,9 @@ void VisualScriptEditor::_input(const Ref<InputEvent> &p_event) {
|
||||
}
|
||||
}
|
||||
|
||||
void VisualScriptEditor::_generic_search() {
|
||||
void VisualScriptEditor::_generic_search(String p_base_type) {
|
||||
port_action_pos = graph->get_viewport()->get_mouse_position() - graph->get_global_position();
|
||||
new_connect_node_select->select_from_visual_script(String(""), false);
|
||||
new_connect_node_select->select_from_visual_script(p_base_type, false);
|
||||
}
|
||||
|
||||
void VisualScriptEditor::_members_gui_input(const Ref<InputEvent> &p_event) {
|
||||
@@ -1787,7 +1787,6 @@ void VisualScriptEditor::drop_data_fw(const Point2 &p_point, const Variant &p_da
|
||||
call->set_base_path(sn->get_path_to(node));
|
||||
call->set_base_type(node->get_class());
|
||||
n = call;
|
||||
|
||||
method_select->select_from_instance(node);
|
||||
selecting_method_id = base_id;
|
||||
}
|
||||
@@ -3156,7 +3155,7 @@ void VisualScriptEditor::_menu_option(int p_what) {
|
||||
|
||||
} break;
|
||||
case EDIT_FIND_NODE_TYPE: {
|
||||
_generic_search();
|
||||
_generic_search(script->get_instance_base_type());
|
||||
} break;
|
||||
case EDIT_COPY_NODES:
|
||||
case EDIT_CUT_NODES: {
|
||||
|
||||
Reference in New Issue
Block a user