mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 23:12:59 +08:00
YBN/XML conversion polygon material bug fix
This commit is contained in:
parent
2939e76118
commit
529eb779a4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user