mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Merge pull request #99253 from KoBeWi/tldr
Simplify some UID conversions
This commit is contained in:
commit
773c8e9a93
@ -476,7 +476,7 @@ void EditorPropertyPath::_path_selected(const String &p_path) {
|
|||||||
String EditorPropertyPath::_get_path_text() {
|
String EditorPropertyPath::_get_path_text() {
|
||||||
String full_path = get_edited_property_value();
|
String full_path = get_edited_property_value();
|
||||||
if (full_path.begins_with("uid://")) {
|
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;
|
return full_path;
|
||||||
|
@ -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://")) {
|
} else if (p_symbol.is_resource_file() || p_symbol.begins_with("uid://")) {
|
||||||
String symbol = p_symbol;
|
String symbol = p_symbol;
|
||||||
if (symbol.begins_with("uid://")) {
|
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<String> scene_extensions;
|
List<String> scene_extensions;
|
||||||
|
Loading…
Reference in New Issue
Block a user