Browse Source

Fix _quick_run method (Play custom scene)

Ignacio Etcheverry 9 years ago
parent
commit
d8f06085a2
2 changed files with 3 additions and 3 deletions
  1. 2 2
      tools/editor/editor_node.cpp
  2. 1 1
      tools/editor/editor_node.h

+ 2 - 2
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());
 }
 
 

+ 1 - 1
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="");