summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2019-03-13 16:26:44 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2019-03-13 16:26:47 +0100
commit5e354162f17aa53a09e7f44e1a2948621fb6d61c (patch)
treed8fddb565bf6f0dcd53ec3377cd6f0d8bb3a55d5 /modules/mono
parent7b67c5857fd7715774c7a2e07a05ff1fb7304ed1 (diff)
C#: Update exports only in the editor
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/csharp_script.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index 04405e0c1d..e33b238f45 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -1933,6 +1933,9 @@ void CSharpScript::_update_exports_values(Map<StringName, Variant> &values, List
bool CSharpScript::_update_exports() {
#ifdef TOOLS_ENABLED
+ if (!Engine::get_singleton()->is_editor_hint())
+ return false;
+
placeholder_fallback_enabled = true; // until proven otherwise
if (!valid)