Assign temporary path to preloaded resources

This commit is contained in:
kobewi
2023-08-05 02:07:16 +02:00
parent 9df6491853
commit a3627b6e37
7 changed files with 17 additions and 0 deletions

View File

@ -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.