summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-18 09:23:41 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-18 09:23:41 -0600
commit895d433f50645a53cc348af243577a10dd81d66c (patch)
treea68a3d8c5784b0172c1304451333ae3d065f5aff
parentcc48a22b2919b06afcc72032c4f1fed323537821 (diff)
parent7fa39c0dbef39fc7ee03a5255bb1247ff7516984 (diff)
downloadredot-engine-895d433f50645a53cc348af243577a10dd81d66c.tar.gz
Merge pull request #99389 from KoBeWi/globalization_ensues
Fix global paths in EditorPropertyPath
-rw-r--r--editor/editor_properties.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 6b6f47d9cf..2b2b32eb22 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -463,10 +463,12 @@ void EditorPropertyPath::_set_read_only(bool p_read_only) {
void EditorPropertyPath::_path_selected(const String &p_path) {
String full_path = p_path;
- ResourceUID::ID id = ResourceLoader::get_resource_uid(full_path);
- if (id != ResourceUID::INVALID_ID) {
- full_path = ResourceUID::get_singleton()->id_to_text(id);
+ if (!global) {
+ 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);