Browse Source

for third-party tools - editor_path is stored in project's editor settings

(cherry picked from commit 2f151068b5333c133d1a9dffe124bb532ba0a25b)
Ivan.Shakhov 5 years ago
parent
commit
d06ae167bf
1 changed files with 3 additions and 0 deletions
  1. 3 0
      editor/editor_node.cpp

+ 3 - 0
editor/editor_node.cpp

@@ -6833,6 +6833,9 @@ EditorNode::EditorNode() {
 	screenshot_timer->connect("timeout", this, "_request_screenshot");
 	add_child(screenshot_timer);
 	screenshot_timer->set_owner(get_owner());
+
+	String exec = OS::get_singleton()->get_executable_path();
+	EditorSettings::get_singleton()->set_project_metadata("editor_metadata", "executable_path", exec); // Save editor executable path for third-party tools
 }
 
 EditorNode::~EditorNode() {