From fee70558f8fae8ace29c10a0393197cb1679fe4a Mon Sep 17 00:00:00 2001
From: EterDelta <67644822+EterDelta@users.noreply.github.com>
Date: Fri, 2 Feb 2024 04:35:53 -0500
Subject: [PATCH] Expose NOTIFICATION_EXTENSION_RELOADED to ClassDB
---
core/object/object.cpp | 1 +
doc/classes/Object.xml | 3 +++
2 files changed, 4 insertions(+)
diff --git a/core/object/object.cpp b/core/object/object.cpp
index 3901c4835de..cc33d0ab8a7 100644
--- a/core/object/object.cpp
+++ b/core/object/object.cpp
@@ -1683,6 +1683,7 @@ void Object::_bind_methods() {
BIND_CONSTANT(NOTIFICATION_POSTINITIALIZE);
BIND_CONSTANT(NOTIFICATION_PREDELETE);
+ BIND_CONSTANT(NOTIFICATION_EXTENSION_RELOADED);
BIND_ENUM_CONSTANT(CONNECT_DEFERRED);
BIND_ENUM_CONSTANT(CONNECT_PERSIST);
diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml
index 5fa43f868ed..f66709cc5df 100644
--- a/doc/classes/Object.xml
+++ b/doc/classes/Object.xml
@@ -1056,6 +1056,9 @@
Notification received when the object is about to be deleted. Can act as the deconstructor of some programming languages.
+
+ Notification received when the object finishes hot reloading. This notification is only sent for extensions classes and derived.
+
Deferred connections trigger their [Callable]s on idle time (at the end of the frame), rather than instantly.