ソースを参照

Merge pull request #27014 from neikeq/csharp-update-exports-only-in-editor

C#: Update exports only in the editor
Rémi Verschelde 6 年 前
コミット
3b5a0f34d4
1 ファイル変更3 行追加0 行削除
  1. 3 0
      modules/mono/csharp_script.cpp

+ 3 - 0
modules/mono/csharp_script.cpp

@@ -1933,6 +1933,9 @@ void CSharpScript::_update_exports_values(Map<StringName, Variant> &values, List
 bool CSharpScript::_update_exports() {
 bool CSharpScript::_update_exports() {
 
 
 #ifdef TOOLS_ENABLED
 #ifdef TOOLS_ENABLED
+	if (!Engine::get_singleton()->is_editor_hint())
+		return false;
+
 	placeholder_fallback_enabled = true; // until proven otherwise
 	placeholder_fallback_enabled = true; // until proven otherwise
 
 
 	if (!valid)
 	if (!valid)