瀏覽代碼

[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();