diff options
| author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-04-26 01:19:54 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-04-26 19:53:44 +0200 |
| commit | 791e1294c33626adad323f292702221cc09c21cc (patch) | |
| tree | e344d2e46f30ea1acc0751c3d9a82db7e1e124f6 /modules/mono/editor/csharp_project.cpp | |
| parent | bf1fe11143241446dc0d8b841f46ac5b9ff4e574 (diff) | |
| download | redot-engine-791e1294c33626adad323f292702221cc09c21cc.tar.gz | |
Mono: Lazily load scripts metadata file
- Only load the scripts metadata file when it's really needed. This way we avoid false errors, when there is no C# project, about missing scripts metadata file.
Diffstat (limited to 'modules/mono/editor/csharp_project.cpp')
| -rw-r--r-- | modules/mono/editor/csharp_project.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/csharp_project.cpp b/modules/mono/editor/csharp_project.cpp index beeff51bc2..fe79286556 100644 --- a/modules/mono/editor/csharp_project.cpp +++ b/modules/mono/editor/csharp_project.cpp @@ -158,7 +158,7 @@ Error generate_scripts_metadata(const String &p_project_path, const String &p_ou PoolStringArray project_files = GDMonoMarshal::mono_array_to_PoolStringArray(ret); PoolStringArray::Read r = project_files.read(); - Dictionary old_dict = CSharpLanguage::get_singleton()->get_scripts_metadata(); + Dictionary old_dict = CSharpLanguage::get_singleton()->get_scripts_metadata_or_nothing(); Dictionary new_dict; for (int i = 0; i < project_files.size(); i++) { |
