From 7fa39c0dbef39fc7ee03a5255bb1247ff7516984 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 18 Nov 2024 12:25:48 +0100 Subject: [PATCH] Fix global paths in EditorPropertyPath --- editor/editor_properties.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 6b6f47d9cf9..2b2b32eb22d 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -463,10 +463,12 @@ void EditorPropertyPath::_set_read_only(bool p_read_only) { void EditorPropertyPath::_path_selected(const String &p_path) { String full_path = p_path; - ResourceUID::ID id = ResourceLoader::get_resource_uid(full_path); - if (id != ResourceUID::INVALID_ID) { - full_path = ResourceUID::get_singleton()->id_to_text(id); + if (!global) { + const ResourceUID::ID id = ResourceLoader::get_resource_uid(full_path); + if (id != ResourceUID::INVALID_ID) { + full_path = ResourceUID::get_singleton()->id_to_text(id); + } } emit_changed(get_edited_property(), full_path);