somewhat unclean code, sorry... but it allows opening brushPrimitives maps in nonBrushPrimitives mode (experimental) by temp toggling to the correct mode
This commit is contained in:
@@ -291,6 +291,7 @@ public:
|
||||
else if(!detectedFormat && string_equal(primitive, "("))
|
||||
{
|
||||
detectedFormat = true;
|
||||
wrongFormat = true;
|
||||
Tokeniser_unexpectedError(tokeniser, primitive, "#quake3-switch-to-texdef");
|
||||
return g_nullNode;
|
||||
}
|
||||
@@ -306,6 +307,7 @@ public:
|
||||
else if(!detectedFormat && string_equal(primitive, "("))
|
||||
{
|
||||
detectedFormat = true;
|
||||
wrongFormat = true;
|
||||
Tokeniser_unexpectedError(tokeniser, primitive, "#quake3-switch-to-brush-primitives");
|
||||
return g_nullNode;
|
||||
}
|
||||
@@ -319,6 +321,7 @@ public:
|
||||
void readGraph(scene::Node& root, TextInputStream& inputStream, EntityCreator& entityTable) const
|
||||
{
|
||||
detectedFormat = false;
|
||||
wrongFormat = false;
|
||||
Tokeniser& tokeniser = GlobalScripLibModule::getTable().m_pfnNewSimpleTokeniser(inputStream);
|
||||
Map_Read(root, tokeniser, entityTable, *this);
|
||||
tokeniser.release();
|
||||
|
||||
Reference in New Issue
Block a user