diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-12 12:13:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-12 12:13:55 +0100 |
commit | 8928b2044b76fb3160c5c17a48a93331233f01f9 (patch) | |
tree | df3fb8fc2cc6376e5ac29b75ec3712ddcdd746cf /core/io/resource.cpp | |
parent | 89f2f7f278b27db396589d50e51be8a1e6dca919 (diff) | |
parent | a3627b6e37049ca55cc0d5227a4ff7bc1b19ae1e (diff) | |
download | redot-engine-8928b2044b76fb3160c5c17a48a93331233f01f9.tar.gz |
Merge pull request #80281 from KoBeWi/unacceptable
Assign temporary path to preloaded resources
Diffstat (limited to 'core/io/resource.cpp')
-rw-r--r-- | core/io/resource.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/io/resource.cpp b/core/io/resource.cpp index e0d42a274a..64fa597a67 100644 --- a/core/io/resource.cpp +++ b/core/io/resource.cpp @@ -90,6 +90,10 @@ String Resource::get_path() const { return path_cache; } +void Resource::set_path_cache(const String &p_path) { + path_cache = p_path; +} + String Resource::generate_scene_unique_id() { // Generate a unique enough hash, but still user-readable. // If it's not unique it does not matter because the saver will try again. |