From 1aca96d1396cb39ec64a34a1564bf1b70f20f278 Mon Sep 17 00:00:00 2001 From: Yarvin Date: Mon, 4 Aug 2025 20:20:13 +0200 Subject: [PATCH] Postpone adding new extension plugins to the editor. ---- Extension EditorPlugins added during Hot Reload on Initialization level Editor were being attached to the scene tree before all the GDExtension Classes (such as already loaded resources) are re-initialized. --- core/extension/gdextension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/extension/gdextension.cpp b/core/extension/gdextension.cpp index 86afd86db36..90f51c0c26c 100644 --- a/core/extension/gdextension.cpp +++ b/core/extension/gdextension.cpp @@ -1086,7 +1086,7 @@ PackedStringArray GDExtension::get_classes_used() const { void GDExtensionEditorPlugins::add_extension_class(const StringName &p_class_name) { if (editor_node_add_plugin) { - editor_node_add_plugin(p_class_name); + callable_mp_static(editor_node_add_plugin).call_deferred(p_class_name); } else { extension_classes.push_back(p_class_name); }