From d06ae167bfeb3bbbc56b4d1052863ae52b70e8f5 Mon Sep 17 00:00:00 2001 From: "Ivan.Shakhov" Date: Thu, 12 Mar 2020 13:59:48 +0100 Subject: [PATCH] for third-party tools - editor_path is stored in project's editor settings (cherry picked from commit 2f151068b5333c133d1a9dffe124bb532ba0a25b) --- editor/editor_node.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 0f7a3f6f402..14e2dc67b9e 100644 --- a/editor/editor_node.cpp +++ b/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() {