From 33dcf4dbd3cc15629efcfcd17639c47ae31973a3 Mon Sep 17 00:00:00 2001 From: wise86Android Date: Sat, 24 Sep 2016 20:24:38 +0200 Subject: [PATCH] 122185 Pointer to local outside scope --- code/FBXConverter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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