Doron Adler 7 年之前
父节点
当前提交
6a45f84b73
共有 2 个文件被更改,包括 1 次插入10 次删除
  1. 0 6
      CMakeLists.txt
  2. 1 4
      code/TriangulateProcess.cpp

+ 0 - 6
CMakeLists.txt

@@ -40,10 +40,6 @@ PROJECT( Assimp )
 
 # All supported options ###############################################
 
-if(NOT CMAKE_BUILD_TYPE)
-  set(CMAKE_BUILD_TYPE "Release")
-endif()
-
 OPTION( BUILD_SHARED_LIBS
   "Build package with shared libraries."
   ON
@@ -340,9 +336,7 @@ ENDIF(NOT ZLIB_FOUND)
 INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
 
 # Search for unzip
-IF (NOT IOS)
 use_pkgconfig(UNZIP minizip)
-ENDIF (NOT IOS)
 
 IF ( ASSIMP_NO_EXPORT )
   ADD_DEFINITIONS( -DASSIMP_BUILD_NO_EXPORT)

+ 1 - 4
code/TriangulateProcess.cpp

@@ -287,10 +287,7 @@ bool TriangulateProcess::TriangulateMesh( aiMesh* pMesh)
             // We project it onto a plane to get a 2d triangle.
 
             // Collect all vertices of of the polygon.
-            // size of temp_verts3d is (max_out+2);
-            // max = (int)face.mNumIndices
-            int smallerMax = (max<=((int)max_out+2))?(max):((int)max_out+2);
-            for (tmp = 0; tmp < smallerMax; ++tmp) {
+           for (tmp = 0; tmp < max; ++tmp) {
                 temp_verts3d[tmp] = verts[idx[tmp]];
             }