|
@@ -310,13 +310,6 @@ namespace Godot.Bridge
|
|
|
|
|
|
_pathTypeBiMap.Add(scriptPathAttr.Path, type);
|
|
|
|
|
|
- // This method may be called before initialization.
|
|
|
- if (NativeFuncs.godotsharp_dotnet_module_is_initialized().ToBool() && Engine.IsEditorHint())
|
|
|
- {
|
|
|
- using godot_string scriptPath = Marshaling.ConvertStringToNative(scriptPathAttr.Path);
|
|
|
- NativeFuncs.godotsharp_internal_editor_file_system_update_file(scriptPath);
|
|
|
- }
|
|
|
-
|
|
|
if (AlcReloadCfg.IsAlcReloadingEnabled)
|
|
|
{
|
|
|
AddTypeForAlcReloading(type);
|
|
@@ -366,6 +359,16 @@ namespace Godot.Bridge
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // This method may be called before initialization.
|
|
|
+ if (NativeFuncs.godotsharp_dotnet_module_is_initialized().ToBool() && Engine.IsEditorHint())
|
|
|
+ {
|
|
|
+ foreach (var scriptPath in _pathTypeBiMap.Paths)
|
|
|
+ {
|
|
|
+ using godot_string nativeScriptPath = Marshaling.ConvertStringToNative(scriptPath);
|
|
|
+ NativeFuncs.godotsharp_internal_editor_file_system_update_file(nativeScriptPath);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
[UnmanagedCallersOnly]
|