Fixed clang compilation
This commit is contained in:
parent
26bbffe8b0
commit
6486d1548b
@ -1410,6 +1410,12 @@ void CSkinnedMesh::addJoints(core::array<IBoneSceneNode*> &jointChildSceneNodes,
|
||||
SkinnedLastFrame=false;
|
||||
}
|
||||
|
||||
bool CSkinnedMesh::sortJointInfluenceFunc(const JointInfluence& a,
|
||||
const JointInfluence& b)
|
||||
{
|
||||
return a.weight > b.weight;
|
||||
}
|
||||
|
||||
void CSkinnedMesh::convertForSkinning()
|
||||
{
|
||||
if (HardwareSkinning) return;
|
||||
@ -1440,9 +1446,7 @@ void CSkinnedMesh::convertForSkinning()
|
||||
{
|
||||
core::array<JointInfluence> this_influence;
|
||||
core::array<JointInfluence> reported_weight = wi[b][i];
|
||||
reported_weight.sort([]
|
||||
(const JointInfluence& a, const JointInfluence& b)
|
||||
{ return a.weight > b.weight; });
|
||||
reported_weight.sort(sortJointInfluenceFunc);
|
||||
float remaining_weight = 1.0f;
|
||||
for (u32 j = 0; j < 4; j++)
|
||||
{
|
||||
|
@ -200,6 +200,9 @@ private:
|
||||
core::vector3df& tangent, core::vector3df& binormal,
|
||||
core::vector3df& vt1, core::vector3df& vt2, core::vector3df& vt3,
|
||||
core::vector2df& tc1, core::vector2df& tc2, core::vector2df& tc3);
|
||||
|
||||
static bool sortJointInfluenceFunc(const JointInfluence& a,
|
||||
const JointInfluence& b);
|
||||
|
||||
core::array<SSkinMeshBuffer*> *SkinningBuffers; //Meshbuffer to skin, default is to skin localBuffers
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user