mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
position nodes from the generic search at the cursor
This commit is contained in:
parent
edc9097bc1
commit
a68b733e17
@ -37,6 +37,7 @@
|
||||
#include "core/variant.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_resource_preview.h"
|
||||
#include "scene/main/viewport.h"
|
||||
#include "visual_script_expression.h"
|
||||
#include "visual_script_flow_control.h"
|
||||
#include "visual_script_func_nodes.h"
|
||||
@ -1330,6 +1331,7 @@ void VisualScriptEditor::_input(const Ref<InputEvent> &p_event) {
|
||||
}
|
||||
|
||||
void VisualScriptEditor::_generic_search() {
|
||||
port_action_pos = graph->get_viewport()->get_mouse_position() - graph->get_global_position();
|
||||
new_connect_node_select->select_from_visual_script(String(""), false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user