Skip to content

Commit

Permalink
Fix parsing of bind shape matrices with whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Norbyte committed Oct 7, 2018
1 parent 1e6d6ee commit 0c5e5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LSLib/Granny/Model/ColladaImporter.cs
Expand Up @@ -526,7 +526,7 @@ private void ImportSkin(Root root, skin skin)

if (skin.bind_shape_matrix != null)
{
var bindShapeFloats = skin.bind_shape_matrix.Split(new char[] { ' ' }).Select(s => Single.Parse(s)).ToArray();
var bindShapeFloats = skin.bind_shape_matrix.Trim().Split(new char[] { ' ' }).Select(s => Single.Parse(s)).ToArray();
var bindShapeMat = ColladaHelpers.FloatsToMatrix(bindShapeFloats);
bindShapeMat.Transpose();

Expand Down

0 comments on commit 0c5e5d4

Please sign in to comment.