Skip to content

Commit

Permalink
Throw mtl line instead of obj line on transparency parse failure
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBombSquad committed Aug 21, 2022
1 parent 80230a1 commit 63b9065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GxUtils/LibGxFormat/ModelLoader/ObjMtlLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ private void ParseMtlTransparencyDeclaration()
if (!float.TryParse(mtlParser.ReadRestOfLine().Trim(), NumberStyles.Float, CultureInfo.InvariantCulture, out transparencyValue))
{
throw new InvalidObjMtlFileException(string.Format(
"{0}: Expected floating point number.", objParser.GetFilePositionStr()));
"{0}: Expected floating point number.", mtlParser.GetFilePositionStr()));
}
currentLoadMaterial.Transparency = transparencyValue;

Expand Down

0 comments on commit 63b9065

Please sign in to comment.