Exposed path properties save UID if referencing a resource

Currently, if a user or some resource exposes a path in a script,
if this references a resource path it will be saved as a full path.

This will make refactoring not work if the resource pointed towards
changes location or is renamed.

This change makes it so an uid:// path is saved internally in case
a path to a resource has been selected, effectively making it refactor proof.
This commit is contained in:
Juan
2024-10-07 11:12:51 +02:00
parent db66bd35af
commit db25c8fce1
2 changed files with 22 additions and 5 deletions

View File

@ -142,6 +142,8 @@ class EditorPropertyPath : public EditorProperty {
LineEdit *path = nullptr;
Button *path_edit = nullptr;
String _get_path_text();
void _path_selected(const String &p_path);
void _path_pressed();
void _path_focus_exited();