summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-03-13 20:07:06 +0100
committerGitHub <noreply@github.com>2019-03-13 20:07:06 +0100
commit3b5a0f34d46edf2c8410f544649a9196618ea300 (patch)
tree307f8d21f5c763a1ab0d4156546fe80131cc2075
parent860f097cc6032fad840f5fb0495b39b06293802c (diff)
parent5e354162f17aa53a09e7f44e1a2948621fb6d61c (diff)
Merge pull request #27014 from neikeq/csharp-update-exports-only-in-editor
C#: Update exports only in the editor
-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)