[.NET] Remove EFS update on reloading assemblies

Updating the files at this point is too early, the scripts haven't been updated yet so their type info is empty.

It looks like EFS is updated anyway without doing it explicitly in `LookupScriptsInAssembly`, and it happens after the scripts have updated their info. So this code seems unnecessary.
This commit is contained in:
Raul Santos 2025-07-03 21:57:37 +02:00
parent efb40c1524
commit 7860bc82b2
No known key found for this signature in database
GPG key ID: B532473AE3A803E4

View file

@ -355,17 +355,6 @@ namespace Godot.Bridge
}
}
}
// This method may be called before initialization.
if (NativeFuncs.godotsharp_dotnet_module_is_initialized().ToBool() && Engine.IsEditorHint())
{
if (_pathTypeBiMap.Paths.Count > 0)
{
string[] scriptPaths = _pathTypeBiMap.Paths.ToArray();
using godot_packed_string_array scriptPathsNative = Marshaling.ConvertSystemArrayToNativePackedStringArray(scriptPaths);
NativeFuncs.godotsharp_internal_editor_file_system_update_files(scriptPathsNative);
}
}
}
[UnmanagedCallersOnly]