summaryrefslogtreecommitdiff
path: root/editor/import/resource_importer_scene.h
diff options
context:
space:
mode:
authorSaracenOne <SaracenOne@gmail.com>2017-09-08 12:06:09 +0100
committerSaracenOne <SaracenOne@gmail.com>2017-09-11 06:59:03 +0100
commitf95edd3be97b0874c59422a74ce9f8ba0699b78c (patch)
tree535bdfbfc0dafd1f47e9ff5399985a4b3da2b3f0 /editor/import/resource_importer_scene.h
parentd1cb73b47a17de830d9474026ffa7b3587cfbc68 (diff)
Allow animations to be saved to external files during scene import.
Diffstat (limited to 'editor/import/resource_importer_scene.h')
-rw-r--r--editor/import/resource_importer_scene.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/editor/import/resource_importer_scene.h b/editor/import/resource_importer_scene.h
index 9c3d5e7876..a483c3776f 100644
--- a/editor/import/resource_importer_scene.h
+++ b/editor/import/resource_importer_scene.h
@@ -85,8 +85,15 @@ class ResourceImporterScene : public ResourceImporter {
enum Presets {
PRESET_SEPARATE_MATERIALS,
PRESET_SEPARATE_MESHES,
+ PRESET_SEPERATE_ANIMATIONS,
+
PRESET_SINGLE_SCENE,
+
PRESET_SEPARATE_MESHES_AND_MATERIALS,
+ PRESET_SEPARATE_MESHES_AND_ANIMATIONS,
+ PRESET_SEPERATE_MATERIALS_AND_ANIMATIONS,
+ PRESET_SEPERATE_MESHES_MATERIALS_AND_ANIMATIONS,
+
PRESET_MULTIPLE_SCENES,
PRESET_MULTIPLE_SCENES_AND_MATERIALS,
};
@@ -112,7 +119,7 @@ public:
virtual void get_import_options(List<ImportOption> *r_options, int p_preset = 0) const;
virtual bool get_option_visibility(const String &p_option, const Map<StringName, Variant> &p_options) const;
- void _make_external_resources(Node *p_node, const String &p_base_path, bool p_make_materials, bool p_keep_materials, bool p_make_meshes, Map<Ref<Material>, Ref<Material> > &p_materials, Map<Ref<ArrayMesh>, Ref<ArrayMesh> > &p_meshes);
+ void _make_external_resources(Node *p_node, const String &p_base_path, bool p_make_animations, bool p_make_materials, bool p_keep_materials, bool p_make_meshes, Map<Ref<Animation>, Ref<Animation> > &p_animation, Map<Ref<Material>, Ref<Material> > &p_materials, Map<Ref<ArrayMesh>, Ref<ArrayMesh> > &p_meshes);
Node *_fix_node(Node *p_node, Node *p_root, Map<Ref<ArrayMesh>, Ref<Shape> > &collision_map);