Properly reset canvas state after drawing, fixes #18860

This commit is contained in:
Juan Linietsky
2018-11-18 16:34:20 -03:00
parent afe4f2080a
commit 455f297671
2 changed files with 10 additions and 4 deletions

View File

@@ -165,7 +165,7 @@ void EditorFolding::load_scene_folding(Node *p_scene, const String &p_path) {
}
bool EditorFolding::has_folding_data(const String &p_path) {
String path = EditorSettings::get_singleton()->get_project_settings_dir();
String file = p_path.get_file() + "-folding-" + p_path.md5_text() + ".cfg";
file = EditorSettings::get_singleton()->get_project_settings_dir().plus_file(file);
return FileAccess::exists(file);