From 529eb779a4eda73badcf4820f160a617249395ee Mon Sep 17 00:00:00 2001 From: dexy Date: Fri, 17 Jan 2020 03:45:35 +1100 Subject: [PATCH] YBN/XML conversion polygon material bug fix --- CodeWalker.Core/GameFiles/Resources/Bounds.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CodeWalker.Core/GameFiles/Resources/Bounds.cs b/CodeWalker.Core/GameFiles/Resources/Bounds.cs index 7af8c55..0d21aa2 100644 --- a/CodeWalker.Core/GameFiles/Resources/Bounds.cs +++ b/CodeWalker.Core/GameFiles/Resources/Bounds.cs @@ -303,6 +303,7 @@ namespace CodeWalker.GameFiles { case 1: case 2: // only found in .yft + case 0: //only found in .ypt break; default: break; @@ -3429,7 +3430,7 @@ namespace CodeWalker.GameFiles { var s = string.Format("{0} m=\"{1}\" v1=\"{2}\" v2=\"{3}\" radius=\"{4}\"", Type, - Material, + MaterialIndex, capsuleIndex1, capsuleIndex2, FloatUtil.ToString(capsuleRadius) @@ -3630,7 +3631,7 @@ namespace CodeWalker.GameFiles { var s = string.Format("{0} m=\"{1}\" v1=\"{2}\" v2=\"{3}\" v3=\"{4}\" v4=\"{5}\"", Type, - Material, + MaterialIndex, boxIndex1, boxIndex2, boxIndex3, @@ -3804,7 +3805,7 @@ namespace CodeWalker.GameFiles { var s = string.Format("{0} m=\"{1}\" v1=\"{2}\" v2=\"{3}\" radius=\"{4}\"", Type, - Material, + MaterialIndex, cylinderIndex1, cylinderIndex2, FloatUtil.ToString(cylinderRadius)