Mono: Fix hot-reloading of nested classes

(cherry picked from commit e0a001549e)
This commit is contained in:
Ignacio Etcheverry 2020-05-09 17:11:35 +02:00 committed by Rémi Verschelde
parent 7cfbde19c9
commit 34132d2f67
3 changed files with 21 additions and 6 deletions

View file

@ -795,7 +795,7 @@ void CSharpLanguage::reload_assemblies(bool p_soft_reload) {
to_reload.push_back(script);
if (script->get_path().empty()) {
script->tied_class_name_for_reload = script->script_class->get_name();
script->tied_class_name_for_reload = script->script_class->get_name_for_lookup();
script->tied_class_namespace_for_reload = script->script_class->get_namespace();
}