소스 검색

[F] Fixing checking rule

Alexandr Arutjunov 9 년 전
부모
커밋
823003ba9b
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      code/StandardShapes.cpp

+ 1 - 2
code/StandardShapes.cpp

@@ -121,8 +121,7 @@ void Subdivide(std::vector<aiVector3D>& positions)
 aiMesh* StandardShapes::MakeMesh(const std::vector<aiVector3D>& positions,
     unsigned int numIndices)
 {
-    if (positions.size() & numIndices || positions.empty() || !numIndices)
-        return NULL;
+    if (positions.empty() || !numIndices) return NULL;
 
     // Determine which kinds of primitives the mesh consists of
     aiMesh* out = new aiMesh();