Sfoglia il codice sorgente

Update scripts exports even when normal script instances are created to better support tool scripts with exported variables.

Sebastian Hartte 6 anni fa
parent
commit
f8a6a6c8a2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      modules/mono/csharp_script.cpp

+ 1 - 0
modules/mono/csharp_script.cpp

@@ -2699,6 +2699,7 @@ Error CSharpScript::reload(bool p_keep_state) {
 			}
 
 			load_script_signals(script_class, native);
+			_update_exports();
 		}
 
 		return OK;