summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-03 23:20:14 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-03 23:20:14 +0100
commit22d402e23d8bd01cad87bc7c5ba7966be37fd20b (patch)
tree83a707d8affb70ea6cd96f0ec32c6f8720906afc
parent607a3b2409f534eae3981fcfe2de4e59dc282a70 (diff)
parentfee70558f8fae8ace29c10a0393197cb1679fe4a (diff)
downloadredot-engine-22d402e23d8bd01cad87bc7c5ba7966be37fd20b.tar.gz
Merge pull request #87863 from EterDelta/reload-notification
Expose `NOTIFICATION_EXTENSION_RELOADED` to `ClassDB`
-rw-r--r--core/object/object.cpp1
-rw-r--r--doc/classes/Object.xml3
2 files changed, 4 insertions, 0 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp
index 3901c4835d..cc33d0ab8a 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 5fa43f868e..f66709cc5d 100644
--- a/doc/classes/Object.xml
+++ b/doc/classes/Object.xml
@@ -1056,6 +1056,9 @@
<constant name="NOTIFICATION_PREDELETE" value="1">
Notification received when the object is about to be deleted. Can act as the deconstructor of some programming languages.
</constant>
+ <constant name="NOTIFICATION_EXTENSION_RELOADED" value="2">
+ Notification received when the object finishes hot reloading. This notification is only sent for extensions classes and derived.
+ </constant>
<constant name="CONNECT_DEFERRED" value="1" enum="ConnectFlags">
Deferred connections trigger their [Callable]s on idle time (at the end of the frame), rather than instantly.
</constant>