mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Edge case fixes
This commit is contained in:
@@ -380,6 +380,18 @@ namespace Nuake
|
||||
|
||||
void ModelLoader::SetVertexBoneData(SkinnedVertex& vertex, int boneID, float weight)
|
||||
{
|
||||
for (int i = 0; i < MAX_BONE_INFLUENCE; ++i)
|
||||
{
|
||||
if (vertex.boneIDs[i] == boneID) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (weight == 0.0f)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < MAX_BONE_INFLUENCE; ++i)
|
||||
{
|
||||
if (vertex.boneIDs[i] < 0)
|
||||
|
||||
Reference in New Issue
Block a user