1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

C#: Fix custom event signals crash on hot-reload

Cleanup and re-initialization of event signals before
and after hot-reload should be working correctly now.
This commit is contained in:
Ignacio Etcheverry
2020-10-26 06:59:08 +01:00
parent d5073c6b4c
commit 34960cb936
5 changed files with 19 additions and 17 deletions

View File

@@ -288,7 +288,7 @@ public:
void mono_object_disposed(MonoObject *p_obj);
/*
* If 'r_delete_owner' is set to true, the caller must memdelete the script instance's owner. Otherwise, ifevent_signal
* If 'r_delete_owner' is set to true, the caller must memdelete the script instance's owner. Otherwise, if
* 'r_remove_script_instance' is set to true, the caller must destroy the script instance by removing it from its owner.
*/
void mono_object_disposed_baseref(MonoObject *p_obj, bool p_is_finalizer, bool &r_delete_owner, bool &r_remove_script_instance);