mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 12:43:43 +00:00
Fix global paths in EditorPropertyPath
This commit is contained in:
parent
5efd124ca1
commit
7fa39c0dbe
@ -463,11 +463,13 @@ 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 (!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);
|
||||
update_property();
|
||||
|
Loading…
Reference in New Issue
Block a user