Skip to content

Commit

Permalink
Better smd parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
TiberiumFusion committed Mar 23, 2021
1 parent 0d178ce commit 748808a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Smd2Pac/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.1.0.1")]
[assembly: AssemblyFileVersion("1.1.0.1")]
2 changes: 1 addition & 1 deletion Smd2Pac/SmdData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void buildHierarchy(SmdBone self, List<SmdBone> orphanBones)
{
NumberedLine boneline = timeBlock[i];
string bonelinetext = boneline.Text.Trim();
string[] bonelinetextParts = bonelinetext.Split(' ');
string[] bonelinetextParts = bonelinetext.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

if (bonelinetextParts.Length != 7)
throw new Exception(ErrInvalid(boneline.LineNumber, "Bone pose data is an invalid format."));
Expand Down

0 comments on commit 748808a

Please sign in to comment.