initialized material texture index to -1.
This commit is contained in:
parent
1236df14c5
commit
60041df5b4
|
@ -879,6 +879,7 @@ static bool LoadMask(const char * filename, int &mask)
|
||||||
|
|
||||||
materials.clear();
|
materials.clear();
|
||||||
Material currentMaterial;
|
Material currentMaterial;
|
||||||
|
currentMaterial.index = -1;
|
||||||
|
|
||||||
bool first = true;
|
bool first = true;
|
||||||
while (!stream.eof())
|
while (!stream.eof())
|
||||||
|
@ -897,6 +898,7 @@ static bool LoadMask(const char * filename, int &mask)
|
||||||
{
|
{
|
||||||
materials.push_back(currentMaterial);
|
materials.push_back(currentMaterial);
|
||||||
currentMaterial = Material();
|
currentMaterial = Material();
|
||||||
|
currentMaterial.index = -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
first = false;
|
first = false;
|
||||||
|
|
Loading…
Reference in New Issue