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

Use GDExtension to_string in Node

Matches the `Object::to_string` implementation.
This commit is contained in:
Raul Santos
2024-06-06 04:43:13 +02:00
parent e96ad5af98
commit 29bf60cc02
2 changed files with 8 additions and 1 deletions

View File

@@ -923,6 +923,7 @@ void Object::notification(int p_notification, bool p_reversed) {
}
String Object::to_string() {
// Keep this method in sync with `Node::to_string`.
if (script_instance) {
bool valid;
String ret = script_instance->to_string(&valid);