[F] Fixing checking rule
parent
8856f7f6ae
commit
823003ba9b
|
@ -121,8 +121,7 @@ void Subdivide(std::vector<aiVector3D>& positions)
|
||||||
aiMesh* StandardShapes::MakeMesh(const std::vector<aiVector3D>& positions,
|
aiMesh* StandardShapes::MakeMesh(const std::vector<aiVector3D>& positions,
|
||||||
unsigned int numIndices)
|
unsigned int numIndices)
|
||||||
{
|
{
|
||||||
if (positions.size() & numIndices || positions.empty() || !numIndices)
|
if (positions.empty() || !numIndices) return NULL;
|
||||||
return NULL;
|
|
||||||
|
|
||||||
// Determine which kinds of primitives the mesh consists of
|
// Determine which kinds of primitives the mesh consists of
|
||||||
aiMesh* out = new aiMesh();
|
aiMesh* out = new aiMesh();
|
||||||
|
|
Loading…
Reference in New Issue