1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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.
This commit is contained in:
Yarvin
2025-08-04 20:20:13 +02:00
parent 45509c284c
commit 1aca96d139

View File

@@ -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);
}