Skip to content

Commit 1aca96d

Browse files
committed
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.
1 parent 45509c2 commit 1aca96d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/extension/gdextension.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ PackedStringArray GDExtension::get_classes_used() const {
10861086

10871087
void GDExtensionEditorPlugins::add_extension_class(const StringName &p_class_name) {
10881088
if (editor_node_add_plugin) {
1089-
editor_node_add_plugin(p_class_name);
1089+
callable_mp_static(editor_node_add_plugin).call_deferred(p_class_name);
10901090
} else {
10911091
extension_classes.push_back(p_class_name);
10921092
}

0 commit comments

Comments
 (0)