[Bug] Tangent calculator broken for triangle strip and fan.

Minor issues with the Ogre API that can be trivial to fix
Post Reply
User avatar
arcanemartz
Gnoblar
Posts: 6
Joined: Tue Jun 26, 2012 11:38 pm
x 3
Contact:

[Bug] Tangent calculator broken for triangle strip and fan.

Post by arcanemartz »

In OgreMesh.cpp, line 1267, v1.8:

Code: Select all

tangentsCalc.addIndexData(sm->indexData);
must be changed to:

Code: Select all

tangentsCalc.addIndexData(sm->indexData, sm->operationType);
To avoid subMesh primitive type to be defaulted to RenderOperation::OT_TRIANGLE_LIST causing error in tangent calculation for triangles strips and fans.

I will submit patch soon.
User avatar
arcanemartz
Gnoblar
Posts: 6
Joined: Tue Jun 26, 2012 11:38 pm
x 3
Contact:

Re: [Bug] Tangent calculator broken for triangle strip and f

Post by arcanemartz »

Post Reply