You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Cancel suspended functions when reloading a script
This commit is contained in:
@@ -2660,6 +2660,8 @@ Error GDScriptCompiler::_prepare_compilation(GDScript *p_script, const GDScriptP
|
||||
|
||||
p_script->clearing = true;
|
||||
|
||||
p_script->cancel_pending_functions(true);
|
||||
|
||||
p_script->native = Ref<GDScriptNativeClass>();
|
||||
p_script->base = Ref<GDScript>();
|
||||
p_script->_base = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user