From 20c4e843b09b7263078c23ec635198feae03c227 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Wed, 29 Nov 2023 11:50:48 -0600 Subject: Send NOTIFICATION_POSTINITIALIZE to extension classes --- src/classes/wrapped.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/classes/wrapped.cpp') diff --git a/src/classes/wrapped.cpp b/src/classes/wrapped.cpp index 37fcf65..ad0eefb 100644 --- a/src/classes/wrapped.cpp +++ b/src/classes/wrapped.cpp @@ -50,6 +50,12 @@ void Wrapped::_postinitialize() { godot::internal::gdextension_interface_object_set_instance(_owner, reinterpret_cast(extension_class), this); } godot::internal::gdextension_interface_object_set_instance_binding(_owner, godot::internal::token, this, _get_bindings_callbacks()); + if (extension_class) { + Object *obj = dynamic_cast(this); + if (obj) { + obj->notification(Object::NOTIFICATION_POSTINITIALIZE); + } + } } Wrapped::Wrapped(const StringName p_godot_class) { -- cgit v1.2.3