Skip to content

Commit 7860bc8

Browse files
committed
[.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.
1 parent efb40c1 commit 7860bc8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -355,17 +355,6 @@ static void LookupScriptForClass(Type type)
355355
}
356356
}
357357
}
358-
359-
// This method may be called before initialization.
360-
if (NativeFuncs.godotsharp_dotnet_module_is_initialized().ToBool() && Engine.IsEditorHint())
361-
{
362-
if (_pathTypeBiMap.Paths.Count > 0)
363-
{
364-
string[] scriptPaths = _pathTypeBiMap.Paths.ToArray();
365-
using godot_packed_string_array scriptPathsNative = Marshaling.ConvertSystemArrayToNativePackedStringArray(scriptPaths);
366-
NativeFuncs.godotsharp_internal_editor_file_system_update_files(scriptPathsNative);
367-
}
368-
}
369358
}
370359

371360
[UnmanagedCallersOnly]

0 commit comments

Comments
 (0)