summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Rog-Wilhelm <zorba-githubdesktop20180420@pavlovian.net>2018-11-04 09:53:29 -0800
committerBen Rog-Wilhelm <zorba-githubdesktop20180420@pavlovian.net>2018-11-04 09:55:42 -0800
commitff6588569b331a8a1be49306d80e229ac1fd3e91 (patch)
tree28ca804b1f9ee13700073a37b3ea9f544e2a41dd
parent121cead38e5ea84ec22139df02eee56d822290b7 (diff)
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 ab96356d6d..6f4b47d5d4 100644
--- a/modules/mono/editor/csharp_project.cpp
+++ b/modules/mono/editor/csharp_project.cpp
@@ -106,6 +106,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");