Pārlūkot izejas kodu

C#: Update exports only in the editor

(cherry picked from commit 5e354162f17aa53a09e7f44e1a2948621fb6d61c)
Ignacio Etcheverry 6 gadi atpakaļ
vecāks
revīzija
57f19fd8ee
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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() {
 
 #ifdef TOOLS_ENABLED
+	if (!Engine::get_singleton()->is_editor_hint())
+		return false;
+
 	placeholder_fallback_enabled = true; // until proven otherwise
 
 	if (!valid)