Simplify some UID conversions

This commit is contained in:
kobewi
2024-11-14 23:22:59 +01:00
parent 673f396677
commit 5be53c36c0
2 changed files with 2 additions and 2 deletions

View File

@@ -476,7 +476,7 @@ void EditorPropertyPath::_path_selected(const String &p_path) {
String EditorPropertyPath::_get_path_text() {
String full_path = get_edited_property_value();
if (full_path.begins_with("uid://")) {
full_path = ResourceUID::get_singleton()->get_id_path(ResourceUID::get_singleton()->text_to_id(full_path));
full_path = ResourceUID::uid_to_path(full_path);
}
return full_path;