- Added check in tsMesh::createTangents to check size of incoming normals

This commit is contained in:
rextimmy 2014-08-27 11:55:59 +10:00
parent 8390c4159f
commit 1829deb432

View file

@ -2949,7 +2949,11 @@ inline void TSMesh::findTangent( U32 index1,
void TSMesh::createTangents(const Vector<Point3F> &_verts, const Vector<Point3F> &_norms)
{
U32 numVerts = _verts.size();
if ( numVerts == 0 )
U32 numNorms = _norms.size();
if ( numVerts <= 0 || numNorms <= 0 )
return;
if( numVerts != numNorms)
return;
Vector<Point3F> tan0;