diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-02-12 21:52:18 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-02-12 21:52:18 +0400 |
commit | 8996184ac4e96af4c7e2e46d3f836c962ccdb0b0 (patch) | |
tree | d6571083a2ea6ec496bc1f85297ad32025ab0f46 /source/blender/collada/MeshImporter.h | |
parent | 751bee184598859d99922d228e0de4a0df96de26 (diff) |
Fixed importing of shapekey names: name is now taken from geometry name instead of deriving it from the mesh name
Diffstat (limited to 'source/blender/collada/MeshImporter.h')
-rw-r--r-- | source/blender/collada/MeshImporter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/collada/MeshImporter.h b/source/blender/collada/MeshImporter.h index 5ab068160a4..d0412985540 100644 --- a/source/blender/collada/MeshImporter.h +++ b/source/blender/collada/MeshImporter.h @@ -60,6 +60,7 @@ class MeshImporterBase public: virtual Object *get_object_by_geom_uid(const COLLADAFW::UniqueId& geom_uid) = 0; virtual Mesh *get_mesh_by_geom_uid(const COLLADAFW::UniqueId& mesh_uid) = 0; + virtual std::string *get_geometry_name(const std::string &mesh_name) = 0; }; class UVDataWrapper @@ -84,6 +85,7 @@ private: Scene *scene; ArmatureImporter *armature_importer; + std::map<std::string, std::string> mesh_geom_map; // needed for correct shape key naming std::map<COLLADAFW::UniqueId, Mesh*> uid_mesh_map; // geometry unique id-to-mesh map std::map<COLLADAFW::UniqueId, Object*> uid_object_map; // geom uid-to-object std::vector<Object*> imported_objects; // list of imported objects @@ -175,7 +177,7 @@ public: // create a mesh storing a pointer in a map so it can be retrieved later by geometry UID bool write_geometry(const COLLADAFW::Geometry* geom); - + std::string *MeshImporter::get_geometry_name(const std::string &mesh_name); }; #endif |