Skip to content

Commit 895d433

Browse files
committed
Merge pull request #99389 from KoBeWi/globalization_ensues
Fix global paths in EditorPropertyPath
2 parents cc48a22 + 7fa39c0 commit 895d433

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

editor/editor_properties.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,12 @@ void EditorPropertyPath::_set_read_only(bool p_read_only) {
463463

464464
void EditorPropertyPath::_path_selected(const String &p_path) {
465465
String full_path = p_path;
466-
ResourceUID::ID id = ResourceLoader::get_resource_uid(full_path);
467466

468-
if (id != ResourceUID::INVALID_ID) {
469-
full_path = ResourceUID::get_singleton()->id_to_text(id);
467+
if (!global) {
468+
const ResourceUID::ID id = ResourceLoader::get_resource_uid(full_path);
469+
if (id != ResourceUID::INVALID_ID) {
470+
full_path = ResourceUID::get_singleton()->id_to_text(id);
471+
}
470472
}
471473

472474
emit_changed(get_edited_property(), full_path);

0 commit comments

Comments
 (0)