Merge pull request #3268 from thomasbiang/fbx_blendshape_channelName
Fbx Import: support channel name in blendshape namepull/3279/head
commit
e4e97684c6
|
@ -1163,7 +1163,8 @@ unsigned int FBXConverter::ConvertMeshSingleMaterial(const MeshGeometry &mesh, c
|
||||||
const std::vector<aiVector3D> &curVertices = shapeGeometry->GetVertices();
|
const std::vector<aiVector3D> &curVertices = shapeGeometry->GetVertices();
|
||||||
const std::vector<aiVector3D> &curNormals = shapeGeometry->GetNormals();
|
const std::vector<aiVector3D> &curNormals = shapeGeometry->GetNormals();
|
||||||
const std::vector<unsigned int> &curIndices = shapeGeometry->GetIndices();
|
const std::vector<unsigned int> &curIndices = shapeGeometry->GetIndices();
|
||||||
animMesh->mName.Set(FixAnimMeshName(shapeGeometry->Name()));
|
//losing channel name if using shapeGeometry->Name()
|
||||||
|
animMesh->mName.Set(FixAnimMeshName(blendShapeChannel->Name()));
|
||||||
for (size_t j = 0; j < curIndices.size(); j++) {
|
for (size_t j = 0; j < curIndices.size(); j++) {
|
||||||
const unsigned int curIndex = curIndices.at(j);
|
const unsigned int curIndex = curIndices.at(j);
|
||||||
aiVector3D vertex = curVertices.at(j);
|
aiVector3D vertex = curVertices.at(j);
|
||||||
|
|
Loading…
Reference in New Issue