summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authoriwek7 <miwanczuk7@gmail.com>2019-07-29 20:09:22 +0200
committeriwek7 <miwanczuk7@gmail.com>2019-09-03 20:49:09 +0200
commit617797c47cac39830282b7ea85fc38eb2d242e19 (patch)
tree3a13d873fc96c1f7e02718269d55a0cc9234ad7a /editor/editor_node.cpp
parent750f8d4926edb14269d9f6a117c5a9fd4765373a (diff)
downloadredot-engine-617797c47cac39830282b7ea85fc38eb2d242e19.tar.gz
Adds skip-breakpoints feature
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 98f5fcbeec..ac958d40de 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -1835,6 +1835,7 @@ void EditorNode::_run(bool p_current, const String &p_custom) {
String main_scene;
String run_filename;
String args;
+ bool skip_breakpoints;
if (p_current || (editor_data.get_edited_scene_root() && p_custom == editor_data.get_edited_scene_root()->get_filename())) {
@@ -1900,8 +1901,9 @@ void EditorNode::_run(bool p_current, const String &p_custom) {
editor_data.get_editor_breakpoints(&breakpoints);
args = ProjectSettings::get_singleton()->get("editor/main_run_args");
+ skip_breakpoints = ScriptEditor::get_singleton()->get_debugger()->is_skip_breakpoints();
- Error error = editor_run.run(run_filename, args, breakpoints);
+ Error error = editor_run.run(run_filename, args, breakpoints, skip_breakpoints);
if (error != OK) {