From 5be53c36c044869e90084864d8ee1e961295b263 Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 14 Nov 2024 23:22:59 +0100 Subject: [PATCH] Simplify some UID conversions --- editor/editor_properties.cpp | 2 +- editor/plugins/script_text_editor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index bdb5ed2ed9e..6b6f47d9cf9 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -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; diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index b45b30b52ec..fc8b8aa49f5 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -951,7 +951,7 @@ void ScriptTextEditor::_lookup_symbol(const String &p_symbol, int p_row, int p_c } else if (p_symbol.is_resource_file() || p_symbol.begins_with("uid://")) { String symbol = p_symbol; if (symbol.begins_with("uid://")) { - symbol = ResourceUID::get_singleton()->get_id_path(ResourceUID::get_singleton()->text_to_id(symbol)); + symbol = ResourceUID::uid_to_path(symbol); } List scene_extensions;