From 2743a0706edfcec53b3cf1d5ff3c4440c35442a4 Mon Sep 17 00:00:00 2001 From: jonathanklein Date: Tue, 21 Feb 2012 16:46:37 +0000 Subject: [PATCH] small fix git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1179 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/OgreImporter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/OgreImporter.cpp b/code/OgreImporter.cpp index 944e28eb9..68e9dd8ca 100644 --- a/code/OgreImporter.cpp +++ b/code/OgreImporter.cpp @@ -524,12 +524,16 @@ aiMesh* OgreImporter::CreateAssimpSubMesh(const SubMesh& theSubMesh, const vecto memcpy(NewAiMesh->mNormals, &theSubMesh.Normals[0], theSubMesh.Normals.size()*sizeof(aiVector3D)); } + + //until we have support for bitangents, no tangents will be written + /* //Tangents if(theSubMesh.HasTangents) { NewAiMesh->mTangents=new aiVector3D[theSubMesh.Tangents.size()]; memcpy(NewAiMesh->mTangents, &theSubMesh.Tangents[0], theSubMesh.Tangents.size()*sizeof(aiVector3D)); } + */ //Uvs if(0!=theSubMesh.NumUvs) @@ -776,6 +780,8 @@ void OgreImporter::LoadSkeleton(std::string FileName, vector &Bones, vecto { XmlRead(SkeletonFile); + //If any property doesn't show up, it will keep its initialization value + //Position: if(string("translate")==SkeletonFile->getNodeName()) {