summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Etcheverry <neikeq@users.noreply.github.com>2018-11-08 18:06:24 +0100
committerGitHub <noreply@github.com>2018-11-08 18:06:24 +0100
commit43e358205831fbcc5d6d7e8aade5131168d83651 (patch)
tree8beced02e9d94b54da9eeb86f9a32bb75425c966
parent9fa1e0b4153102913cddc6380207f5c43e6ebaac (diff)
parentff6588569b331a8a1be49306d80e229ac1fd3e91 (diff)
Merge pull request #23505 from zorbathut/zorbathut/updateproject
Add option for automatic project updating.
-rw-r--r--modules/mono/editor/csharp_project.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/mono/editor/csharp_project.cpp b/modules/mono/editor/csharp_project.cpp
index 2400e9757b..416108603b 100644
--- a/modules/mono/editor/csharp_project.cpp
+++ b/modules/mono/editor/csharp_project.cpp
@@ -108,6 +108,9 @@ String generate_game_project(const String &p_dir, const String &p_name, const Ve
void add_item(const String &p_project_path, const String &p_item_type, const String &p_include) {
+ if (!GLOBAL_DEF("mono/project/auto_update_project", true))
+ return;
+
_GDMONO_SCOPE_DOMAIN_(TOOLS_DOMAIN)
GDMonoClass *klass = GDMono::get_singleton()->get_editor_tools_assembly()->get_class("GodotSharpTools.Project", "ProjectUtils");