Fix
parent
e94e26ae1e
commit
01fd19d2cd
|
@ -114,37 +114,25 @@ Gfx::VertexTex2 ReadTextVertexTex2(const std::string& text)
|
|||
|
||||
stream >> what;
|
||||
if (what != "c")
|
||||
{
|
||||
GetLogger()->Error("c\n");
|
||||
return Gfx::VertexTex2();
|
||||
}
|
||||
|
||||
stream >> result.coord.x >> result.coord.y >> result.coord.z;
|
||||
|
||||
stream >> what;
|
||||
if (what != "n")
|
||||
{
|
||||
GetLogger()->Error("n\n");
|
||||
return Gfx::VertexTex2();
|
||||
}
|
||||
|
||||
stream >> result.normal.x >> result.normal.y >> result.normal.z;
|
||||
|
||||
stream >> what;
|
||||
if (what != "t1")
|
||||
{
|
||||
GetLogger()->Error("t1\n");
|
||||
return Gfx::VertexTex2();
|
||||
}
|
||||
|
||||
stream >> result.texCoord.x >> result.texCoord.y;
|
||||
|
||||
stream >> what;
|
||||
if (what != "t2")
|
||||
{
|
||||
GetLogger()->Error("t2\n");
|
||||
return Gfx::VertexTex2();
|
||||
}
|
||||
|
||||
stream >> result.texCoord2.x >> result.texCoord2.y;
|
||||
|
||||
|
|
|
@ -154,6 +154,7 @@ void PrintStats(const std::map<T, int>& stats, int total)
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
CLogger logger;
|
||||
logger.SetLogLevel(LOG_ERROR);
|
||||
|
||||
if (!ParseArgs(argc, argv))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue