mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-12 23:25:21 +00:00
Update models_iqm.cpp
- Fixed an issue with IQMs exported from blender that caused some issues in the blend weights
This commit is contained in:
parent
ab7be9b4a4
commit
be9a671217
1 changed files with 5 additions and 1 deletions
|
@ -458,7 +458,11 @@ void IQMModel::LoadBlendWeights(IQMFileReader& reader, const IQMVertexArray& ver
|
||||||
{
|
{
|
||||||
for (FModelVertex& v : Vertices)
|
for (FModelVertex& v : Vertices)
|
||||||
{
|
{
|
||||||
v.SetBoneWeight(reader.ReadUByte(), reader.ReadUByte(), reader.ReadUByte(), reader.ReadUByte());
|
int x = reader.ReadUByte();
|
||||||
|
int y = reader.ReadUByte();
|
||||||
|
int z = reader.ReadUByte();
|
||||||
|
int w = reader.ReadUByte();
|
||||||
|
v.SetBoneWeight(x, y, z, w);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (vertexArray.Format == IQM_FLOAT && vertexArray.Size == 4)
|
else if (vertexArray.Format == IQM_FLOAT && vertexArray.Size == 4)
|
||||||
|
|
Loading…
Reference in a new issue