diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-01-30 11:03:46 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-01-30 11:04:22 -0300 |
commit | 1322ca6fb254f31d9f6133ad083588b5d21e97be (patch) | |
tree | ec7709afe854715d863fb64e7112161913a78ab7 /scene/resources/scene_format_text.h | |
parent | d1954f464c952363ab4b09ec9ccbd26c740c3438 (diff) |
Ability to import .escn files, which is just a .tscn but with forced import.
This works together with the new Blender to Godot exporter.
Diffstat (limited to 'scene/resources/scene_format_text.h')
-rw-r--r-- | scene/resources/scene_format_text.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/scene_format_text.h b/scene/resources/scene_format_text.h index c014b9bfae..c28ded3d77 100644 --- a/scene/resources/scene_format_text.h +++ b/scene/resources/scene_format_text.h @@ -128,7 +128,9 @@ public: }; class ResourceFormatLoaderText : public ResourceFormatLoader { + public: + static ResourceFormatLoaderText *singleton; virtual Ref<ResourceInteractiveLoader> load_interactive(const String &p_path, const String &p_original_path = "", Error *r_error = NULL); virtual void get_recognized_extensions_for_type(const String &p_type, List<String> *p_extensions) const; virtual void get_recognized_extensions(List<String> *p_extensions) const; @@ -138,6 +140,8 @@ public: virtual Error rename_dependencies(const String &p_path, const Map<String, String> &p_map); static Error convert_file_to_binary(const String &p_src_path, const String &p_dst_path); + + ResourceFormatLoaderText() { singleton = this; } }; class ResourceFormatSaverTextInstance { |