mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
Merge pull request #763 from rextimmy/tsmesh_createtangents_fix
- Added check in tsMesh::createTangents to check size of incoming normal...
This commit is contained in:
commit
cbf3078343
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue