Skip to content

Commit

Permalink
Make inverseBindMatrices optional
Browse files Browse the repository at this point in the history
  • Loading branch information
danwillm committed Jul 1, 2024
1 parent cf97676 commit 2e7ba45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiny_gltf.h
Original file line number Diff line number Diff line change
Expand Up @@ -5660,7 +5660,7 @@ static bool ParseSkin(Skin *skin, std::string *err, const detail::json &o,
skin->skeleton = skeleton;

int invBind = -1;
ParseIntegerProperty(&invBind, err, o, "inverseBindMatrices", true, "Skin");
ParseIntegerProperty(&invBind, err, o, "inverseBindMatrices", false, "Skin");
skin->inverseBindMatrices = invBind;

ParseExtrasAndExtensions(skin, err, o,
Expand Down

0 comments on commit 2e7ba45

Please sign in to comment.