122185 Pointer to local outside scope

pull/1007/head
wise86Android 2016-09-24 20:24:38 +02:00
parent 94538e9d87
commit 33dcf4dbd3
1 changed files with 1 additions and 1 deletions

View File

@ -1394,9 +1394,9 @@ unsigned int Converter::ConvertMeshMultiMaterial( const MeshGeometry& mesh, cons
// allocate tangents, binormals. // allocate tangents, binormals.
const std::vector<aiVector3D>& tangents = mesh.GetTangents(); const std::vector<aiVector3D>& tangents = mesh.GetTangents();
const std::vector<aiVector3D>* binormals = &mesh.GetBinormals(); const std::vector<aiVector3D>* binormals = &mesh.GetBinormals();
std::vector<aiVector3D> tempBinormals;
if ( tangents.size() ) { if ( tangents.size() ) {
std::vector<aiVector3D> tempBinormals;
if ( !binormals->size() ) { if ( !binormals->size() ) {
if ( normals.size() ) { if ( normals.size() ) {
// XXX this computes the binormals for the entire mesh, not only // XXX this computes the binormals for the entire mesh, not only