diff options
author | Raul Santos <raulsntos@gmail.com> | 2023-10-20 13:43:42 +0200 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2023-10-20 13:43:42 +0200 |
commit | 9750e49c57e79844c3696f789d4fa6275f8a3a0b (patch) | |
tree | 384ddb7d72365bbbdbb44f925dc0ec163b6bd825 /core/object/object.cpp | |
parent | f8818f85e6c43cdf1277e8ae85eba19ca0a003b0 (diff) | |
download | redot-engine-9750e49c57e79844c3696f789d4fa6275f8a3a0b.tar.gz |
Add `NOTIFICATION_PREDELETE_CLEANUP` notification
New notification sent after `NOTIFICATION_PREDELETE` to let Objects cleanup at the very end, it should be the last notification sent.
Diffstat (limited to 'core/object/object.cpp')
-rw-r--r-- | core/object/object.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp index 2e5b897bce..40df13849b 100644 --- a/core/object/object.cpp +++ b/core/object/object.cpp @@ -198,6 +198,7 @@ bool Object::_predelete() { notification(NOTIFICATION_PREDELETE, true); if (_predelete_ok) { _class_name_ptr = nullptr; // Must restore, so constructors/destructors have proper class name access at each stage. + notification(NOTIFICATION_PREDELETE_CLEANUP, true); } return _predelete_ok; } |