mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
build 2010181. t3d parser fix, crash fix
This commit is contained in:
@@ -213,7 +213,7 @@ std::pair<int, int> TSubModel::Load( cParser &parser, bool dynamic )
|
||||
auto token { parser.getToken<std::string>() };
|
||||
if( token != "type:" ) {
|
||||
std::string errormessage {
|
||||
"Bad model: expected submodel type definition not found while loading model \"" + pRoot->NameGet() + "\""
|
||||
"Bad model: expected submodel type definition not found while loading model \"" + parser.Name() + "\""
|
||||
+ "\ncurrent model data stream content: \"" };
|
||||
auto count { 10 };
|
||||
while( ( true == parser.getTokens() )
|
||||
@@ -509,7 +509,7 @@ std::pair<int, int> TSubModel::Load( cParser &parser, bool dynamic )
|
||||
}
|
||||
token = parser.getToken<std::string>();
|
||||
}
|
||||
if( token == "numverts:" )
|
||||
if( ( token == "numverts:" ) || ( token == "numverts" ) )
|
||||
{ // normalna lista wierzchołków
|
||||
/*
|
||||
// Ra 15-01: to wczytać jako tekst - jeśli pierwszy znak zawiera "*", to
|
||||
|
||||
Reference in New Issue
Block a user