瀏覽代碼

122185 Pointer to local outside scope

wise86Android 9 年之前
父節點
當前提交
33dcf4dbd3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/FBXConverter.cpp

+ 1 - 1
code/FBXConverter.cpp

@@ -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