diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index 1f6274d8f..884493259 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -1394,9 +1394,9 @@ unsigned int Converter::ConvertMeshMultiMaterial( const MeshGeometry& mesh, cons // allocate tangents, binormals. const std::vector& tangents = mesh.GetTangents(); const std::vector* binormals = &mesh.GetBinormals(); + std::vector tempBinormals; if ( tangents.size() ) { - std::vector tempBinormals; if ( !binormals->size() ) { if ( normals.size() ) { // XXX this computes the binormals for the entire mesh, not only