mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
parent
132e2f458d
commit
8d51618949
134 changed files with 1107 additions and 1110 deletions
|
@ -719,13 +719,13 @@ void CSharpLanguage::reload_assemblies(bool p_soft_reload) {
|
|||
// Script::instances are deleted during managed object disposal, which happens on domain finalize.
|
||||
// Only placeholders are kept. Therefore we need to keep a copy before that happens.
|
||||
|
||||
for (Set<Object *>::Element *E = script->instances.front(); E; E = E->next()) {
|
||||
script->pending_reload_instances.insert(E->get()->get_instance_id());
|
||||
for (Set<Object *>::Element *F = script->instances.front(); F; F = F->next()) {
|
||||
script->pending_reload_instances.insert(F->get()->get_instance_id());
|
||||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
for (Set<PlaceHolderScriptInstance *>::Element *E = script->placeholders.front(); E; E = E->next()) {
|
||||
script->pending_reload_instances.insert(E->get()->get_owner()->get_instance_id());
|
||||
for (Set<PlaceHolderScriptInstance *>::Element *F = script->placeholders.front(); F; F = F->next()) {
|
||||
script->pending_reload_instances.insert(F->get()->get_owner()->get_instance_id());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue