mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02: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>() };
|
auto token { parser.getToken<std::string>() };
|
||||||
if( token != "type:" ) {
|
if( token != "type:" ) {
|
||||||
std::string errormessage {
|
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: \"" };
|
+ "\ncurrent model data stream content: \"" };
|
||||||
auto count { 10 };
|
auto count { 10 };
|
||||||
while( ( true == parser.getTokens() )
|
while( ( true == parser.getTokens() )
|
||||||
@@ -509,7 +509,7 @@ std::pair<int, int> TSubModel::Load( cParser &parser, bool dynamic )
|
|||||||
}
|
}
|
||||||
token = parser.getToken<std::string>();
|
token = parser.getToken<std::string>();
|
||||||
}
|
}
|
||||||
if( token == "numverts:" )
|
if( ( token == "numverts:" ) || ( token == "numverts" ) )
|
||||||
{ // normalna lista wierzchołków
|
{ // normalna lista wierzchołków
|
||||||
/*
|
/*
|
||||||
// Ra 15-01: to wczytać jako tekst - jeśli pierwszy znak zawiera "*", to
|
// Ra 15-01: to wczytać jako tekst - jeśli pierwszy znak zawiera "*", to
|
||||||
|
|||||||
Reference in New Issue
Block a user