Browse Source

Merge pull request #87863 from EterDelta/reload-notification

Expose `NOTIFICATION_EXTENSION_RELOADED` to `ClassDB`
Rémi Verschelde 1 year ago
parent
commit
22d402e23d
2 changed files with 4 additions and 0 deletions
  1. 1 0
      core/object/object.cpp
  2. 3 0
      doc/classes/Object.xml

+ 1 - 0
core/object/object.cpp

@@ -1683,6 +1683,7 @@ void Object::_bind_methods() {
 
 
 	BIND_CONSTANT(NOTIFICATION_POSTINITIALIZE);
 	BIND_CONSTANT(NOTIFICATION_POSTINITIALIZE);
 	BIND_CONSTANT(NOTIFICATION_PREDELETE);
 	BIND_CONSTANT(NOTIFICATION_PREDELETE);
+	BIND_CONSTANT(NOTIFICATION_EXTENSION_RELOADED);
 
 
 	BIND_ENUM_CONSTANT(CONNECT_DEFERRED);
 	BIND_ENUM_CONSTANT(CONNECT_DEFERRED);
 	BIND_ENUM_CONSTANT(CONNECT_PERSIST);
 	BIND_ENUM_CONSTANT(CONNECT_PERSIST);

+ 3 - 0
doc/classes/Object.xml

@@ -1056,6 +1056,9 @@
 		<constant name="NOTIFICATION_PREDELETE" value="1">
 		<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.
 			Notification received when the object is about to be deleted. Can act as the deconstructor of some programming languages.
 		</constant>
 		</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">
 		<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.
 			Deferred connections trigger their [Callable]s on idle time (at the end of the frame), rather than instantly.
 		</constant>
 		</constant>