diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2020-03-18 15:05:50 +0100 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2020-03-18 15:06:41 +0100 |
commit | 40f8de4c1e8d61bc2d90c6fef740ee91b5851906 (patch) | |
tree | 7b6b0b6b01dcf3824fe35c946bd4178193cbb7f8 /modules/mono/csharp_script.cpp | |
parent | fe0b783e707198fbe64abda795ad234999f87834 (diff) | |
download | redot-engine-40f8de4c1e8d61bc2d90c6fef740ee91b5851906.tar.gz |
Sync csproj when files are changed from the Godot FileSystem dock
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r-- | modules/mono/csharp_script.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index c3608693f1..ebc9822982 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -3035,22 +3035,6 @@ void CSharpScript::initialize_for_managed_type(Ref<CSharpScript> p_script, GDMon bool CSharpScript::can_instance() const { #ifdef TOOLS_ENABLED - if (Engine::get_singleton()->is_editor_hint()) { - - // Hack to lower the risk of attached scripts not being added to the C# project - if (!get_path().empty() && get_path().find("::") == -1) { // Ignore if built-in script. Can happen if the file is deleted... - if (_create_project_solution_if_needed()) { - CSharpProject::add_item(GodotSharpDirs::get_project_csproj_path(), - "Compile", - ProjectSettings::get_singleton()->globalize_path(get_path())); - } else { - ERR_PRINT("C# project could not be created; cannot add file: '" + get_path() + "'."); - } - } - } -#endif - -#ifdef TOOLS_ENABLED bool extra_cond = tool || ScriptServer::is_scripting_enabled(); #else bool extra_cond = true; |