diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-08-29 19:50:58 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-08-29 20:17:59 -0300 |
commit | 145ff58277a5145026be9887666a2acd50559e80 (patch) | |
tree | 4d57bba6ea5fb194f4e2c0c29c0d7d4bb7ad01f3 /core/io/resource_import.h | |
parent | 6d41ceea992e7f6589ea83e4db80fe4fe342fbdb (diff) | |
download | redot-engine-145ff58277a5145026be9887666a2acd50559e80.tar.gz |
Fix constant reimport on broken files, closes #9930
Diffstat (limited to 'core/io/resource_import.h')
-rw-r--r-- | core/io/resource_import.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/resource_import.h b/core/io/resource_import.h index bf0bf3987a..b10255fbab 100644 --- a/core/io/resource_import.h +++ b/core/io/resource_import.h @@ -40,7 +40,7 @@ class ResourceFormatImporter : public ResourceFormatLoader { String type; }; - Error _get_path_and_type(const String &p_path, PathAndType &r_path_and_type) const; + Error _get_path_and_type(const String &p_path, PathAndType &r_path_and_type, bool *r_valid = NULL) const; static ResourceFormatImporter *singleton; @@ -54,6 +54,7 @@ public: virtual bool recognize_path(const String &p_path, const String &p_for_type = String()) const; virtual bool handles_type(const String &p_type) const; virtual String get_resource_type(const String &p_path) const; + virtual bool is_import_valid(const String &p_path) const; virtual void get_dependencies(const String &p_path, List<String> *p_dependencies, bool p_add_types = false); virtual bool can_be_imported(const String &p_path) const; |