mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-23 07:22:52 +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 1:
|
||||||
case 2: // only found in .yft
|
case 2: // only found in .yft
|
||||||
|
case 0: //only found in .ypt
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -3429,7 +3430,7 @@ namespace CodeWalker.GameFiles
|
|||||||
{
|
{
|
||||||
var s = string.Format("{0} m=\"{1}\" v1=\"{2}\" v2=\"{3}\" radius=\"{4}\"",
|
var s = string.Format("{0} m=\"{1}\" v1=\"{2}\" v2=\"{3}\" radius=\"{4}\"",
|
||||||
Type,
|
Type,
|
||||||
Material,
|
MaterialIndex,
|
||||||
capsuleIndex1,
|
capsuleIndex1,
|
||||||
capsuleIndex2,
|
capsuleIndex2,
|
||||||
FloatUtil.ToString(capsuleRadius)
|
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}\"",
|
var s = string.Format("{0} m=\"{1}\" v1=\"{2}\" v2=\"{3}\" v3=\"{4}\" v4=\"{5}\"",
|
||||||
Type,
|
Type,
|
||||||
Material,
|
MaterialIndex,
|
||||||
boxIndex1,
|
boxIndex1,
|
||||||
boxIndex2,
|
boxIndex2,
|
||||||
boxIndex3,
|
boxIndex3,
|
||||||
@ -3804,7 +3805,7 @@ namespace CodeWalker.GameFiles
|
|||||||
{
|
{
|
||||||
var s = string.Format("{0} m=\"{1}\" v1=\"{2}\" v2=\"{3}\" radius=\"{4}\"",
|
var s = string.Format("{0} m=\"{1}\" v1=\"{2}\" v2=\"{3}\" radius=\"{4}\"",
|
||||||
Type,
|
Type,
|
||||||
Material,
|
MaterialIndex,
|
||||||
cylinderIndex1,
|
cylinderIndex1,
|
||||||
cylinderIndex2,
|
cylinderIndex2,
|
||||||
FloatUtil.ToString(cylinderRadius)
|
FloatUtil.ToString(cylinderRadius)
|
||||||
|
Loading…
Reference in New Issue
Block a user