[IXModel] Fix surfs sign
This commit is contained in:
parent
3e509e1b1d
commit
576b07891e
@ -149,7 +149,7 @@ namespace Assets
|
|||||||
{
|
{
|
||||||
asset->materialHandles = reader.readArray<Game::Material*>(asset->numsurfs);
|
asset->materialHandles = reader.readArray<Game::Material*>(asset->numsurfs);
|
||||||
|
|
||||||
for (char i = 0; i < asset->numsurfs; ++i)
|
for (unsigned char i = 0; i < asset->numsurfs; ++i)
|
||||||
{
|
{
|
||||||
if (asset->materialHandles[i])
|
if (asset->materialHandles[i])
|
||||||
{
|
{
|
||||||
@ -320,7 +320,7 @@ namespace Assets
|
|||||||
|
|
||||||
if (asset->materialHandles)
|
if (asset->materialHandles)
|
||||||
{
|
{
|
||||||
for (char i = 0; i < asset->numsurfs; ++i)
|
for (unsigned char i = 0; i < asset->numsurfs; ++i)
|
||||||
{
|
{
|
||||||
if (asset->materialHandles[i])
|
if (asset->materialHandles[i])
|
||||||
{
|
{
|
||||||
@ -422,7 +422,7 @@ namespace Assets
|
|||||||
Game::Material** destMaterials = buffer->dest<Game::Material*>();
|
Game::Material** destMaterials = buffer->dest<Game::Material*>();
|
||||||
buffer->saveArray(asset->materialHandles, asset->numsurfs);
|
buffer->saveArray(asset->materialHandles, asset->numsurfs);
|
||||||
|
|
||||||
for (char i = 0; i < asset->numsurfs; ++i)
|
for (unsigned char i = 0; i < asset->numsurfs; ++i)
|
||||||
{
|
{
|
||||||
if (asset->materialHandles[i])
|
if (asset->materialHandles[i])
|
||||||
{
|
{
|
||||||
|
@ -1797,7 +1797,7 @@ namespace Game
|
|||||||
const char *name;
|
const char *name;
|
||||||
char numBones;
|
char numBones;
|
||||||
char numRootBones;
|
char numRootBones;
|
||||||
char numsurfs;
|
unsigned char numsurfs;
|
||||||
char lodRampType;
|
char lodRampType;
|
||||||
float scale;
|
float scale;
|
||||||
unsigned int noScalePartBits[6];
|
unsigned int noScalePartBits[6];
|
||||||
|
Loading…
Reference in New Issue
Block a user