VS: Give the generic search the current base type.
This commit is contained in:
parent
4e6420b5a8
commit
432460a355
2 changed files with 4 additions and 5 deletions
|
@ -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();
|
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) {
|
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_path(sn->get_path_to(node));
|
||||||
call->set_base_type(node->get_class());
|
call->set_base_type(node->get_class());
|
||||||
n = call;
|
n = call;
|
||||||
|
|
||||||
method_select->select_from_instance(node);
|
method_select->select_from_instance(node);
|
||||||
selecting_method_id = base_id;
|
selecting_method_id = base_id;
|
||||||
}
|
}
|
||||||
|
@ -3156,7 +3155,7 @@ void VisualScriptEditor::_menu_option(int p_what) {
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case EDIT_FIND_NODE_TYPE: {
|
case EDIT_FIND_NODE_TYPE: {
|
||||||
_generic_search();
|
_generic_search(script->get_instance_base_type());
|
||||||
} break;
|
} break;
|
||||||
case EDIT_COPY_NODES:
|
case EDIT_COPY_NODES:
|
||||||
case EDIT_CUT_NODES: {
|
case EDIT_CUT_NODES: {
|
||||||
|
|
|
@ -212,7 +212,7 @@ class VisualScriptEditor : public ScriptEditorBase {
|
||||||
|
|
||||||
void _input(const Ref<InputEvent> &p_event);
|
void _input(const Ref<InputEvent> &p_event);
|
||||||
|
|
||||||
void _generic_search();
|
void _generic_search(String p_base_type = "");
|
||||||
|
|
||||||
void _members_gui_input(const Ref<InputEvent> &p_event);
|
void _members_gui_input(const Ref<InputEvent> &p_event);
|
||||||
void _on_nodes_delete();
|
void _on_nodes_delete();
|
||||||
|
|
Loading…
Reference in a new issue