1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Fix setting remote properties that take objects not working

This commit is contained in:
Michael Alexsander
2025-06-18 20:50:24 -03:00
parent dec5a373d9
commit 599ce2b43a
2 changed files with 18 additions and 9 deletions

View File

@@ -272,7 +272,15 @@ void ScriptEditorDebugger::request_remote_evaluate(const String &p_expression, i
}
void ScriptEditorDebugger::update_remote_object(ObjectID p_obj_id, const String &p_prop, const Variant &p_value, const String &p_field) {
Array msg = { p_obj_id, p_prop, p_value };
Array msg = { p_obj_id, p_prop };
Ref<Resource> res = p_value;
if (res.is_valid() && !res->get_path().is_empty()) {
msg.append(res->get_path());
} else {
msg.append(p_value);
}
if (p_field.is_empty()) {
_put_msg("scene:set_object_property", msg);
} else {