Skip to content

Commit

Permalink
Inverse bind matrices are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Aug 6, 2023
1 parent 2886de8 commit 081ae59
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,12 @@ public void processSkinModels(
private void processSkinModel(SkinModel skinModel)
{
AccessorModel ibm = skinModel.getInverseBindMatrices();
bufferStructureBuilder.addAccessorModel(
"inverse bind matrices", (DefaultAccessorModel) ibm);
bufferStructureBuilder.createBufferViewModel("skin", null);
if (ibm != null)
{
bufferStructureBuilder.addAccessorModel(
"inverse bind matrices", (DefaultAccessorModel) ibm);
bufferStructureBuilder.createBufferViewModel("skin", null);
}
}

@Override
Expand Down

0 comments on commit 081ae59

Please sign in to comment.