mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Merge pull request #99389 from KoBeWi/globalization_ensues
Fix global paths in EditorPropertyPath
This commit is contained in:
commit
895d433f50
@ -463,10 +463,12 @@ void EditorPropertyPath::_set_read_only(bool p_read_only) {
|
|||||||
|
|
||||||
void EditorPropertyPath::_path_selected(const String &p_path) {
|
void EditorPropertyPath::_path_selected(const String &p_path) {
|
||||||
String full_path = p_path;
|
String full_path = p_path;
|
||||||
ResourceUID::ID id = ResourceLoader::get_resource_uid(full_path);
|
|
||||||
|
|
||||||
if (id != ResourceUID::INVALID_ID) {
|
if (!global) {
|
||||||
full_path = ResourceUID::get_singleton()->id_to_text(id);
|
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);
|
emit_changed(get_edited_property(), full_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user