Use new XDG folders to dehardcode paths
This commit is contained in:
parent
32c12a92a5
commit
6e3f2f44af
15 changed files with 58 additions and 61 deletions
|
|
@ -184,7 +184,7 @@ Ref<Texture> EditorPackedScenePreviewPlugin::generate(const RES &p_from) {
|
|||
|
||||
Ref<Texture> EditorPackedScenePreviewPlugin::generate_from_path(const String &p_path) {
|
||||
|
||||
String temp_path = EditorSettings::get_singleton()->get_settings_dir().plus_file("tmp");
|
||||
String temp_path = EditorSettings::get_singleton()->get_cache_dir();
|
||||
String cache_base = ProjectSettings::get_singleton()->globalize_path(p_path).md5_text();
|
||||
cache_base = temp_path.plus_file("resthumb-" + cache_base);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue