Godot Engine – Multi-platform 2D and 3D game engine
Fix type mismatch between gdextension interface implementation source file and declaration json file about `object_get_script_instance` and `object_set_script_instance`.
Daylily-Zeleend21670318fab
diff --git a/core/extension/gdextension_interface.cpp b/core/extension/gdextension_interface.cppindex 8aa07c1a327..0e537cc897a 100644--- a/core/extension/gdextension_interface.cpp+++ b/core/extension/gdextension_interface.cpp@@ -1580,7 +1580,7 @@ static void gdextension_placeholder_script_instance_update(GDExtensionScriptInstplaceholder->update(properties_list, values_map);}-static GDExtensionScriptInstancePtr gdextension_object_get_script_instance(GDExtensionConstObjectPtr p_object, GDExtensionConstObjectPtr p_language) {+static GDExtensionScriptInstanceDataPtr gdextension_object_get_script_instance(GDExtensionConstObjectPtr p_object, GDExtensionConstObjectPtr p_language) {if (!p_object || !p_language) {return nullptr;}diff --git a/core/extension/gdextension_interface.json b/core/extension/gdextension_interface.jsonindex 9b55cc9810d..bea034a6ba7 100644--- a/core/extension/gdextension_interface.json+++ b/core/extension/gdextension_interface.json@@ -8332,14 +8332,14 @@},{"name": "p_script_instance",- "type": "GDExtensionScriptInstanceDataPtr",+ "type": "GDExtensionScriptInstancePtr","description": [- "A pointer to the script instance data to attach to this object."+ "A pointer to the script instance to attach to this object. Create a script instance through the latest version of \"script_instance_create()\"."]}],"description": [- "Set the script instance data attached to this object."+ "Set the script instance attached to this object."],"since": "4.5"},