diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index b39a1b53507..794e02fa500 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -3843,9 +3843,9 @@ void EditorNode::_quick_opened() { } } -void EditorNode::_quick_run(const String& p_resource) { +void EditorNode::_quick_run() { - _run(false,p_resource); + _run(false,quick_run->get_selected()); } diff --git a/tools/editor/editor_node.h b/tools/editor/editor_node.h index a8aa6ac1f4c..6893b78e8ba 100644 --- a/tools/editor/editor_node.h +++ b/tools/editor/editor_node.h @@ -447,7 +447,7 @@ class EditorNode : public Node { void _hide_top_editors(); void _quick_opened(); - void _quick_run(const String& p_resource); + void _quick_run(); void _run(bool p_current=false, const String &p_custom="");