[F] Fixing checking rule

pull/1014/head
Alexandr Arutjunov 2016-10-02 02:28:06 +03:00
parent 8856f7f6ae
commit 823003ba9b
1 changed files with 1 additions and 2 deletions

View File

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