16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

changes for standalone e3d export

This commit is contained in:
milek7
2022-03-06 18:18:07 +01:00
parent 3cb5b5fd9a
commit ce6d530aa8
10 changed files with 210 additions and 9 deletions

View File

@@ -7,6 +7,7 @@ obtain one at
http://mozilla.org/MPL/2.0/.
*/
#include "Globals.h"
#include "stdafx.h"
#include "parser.h"
#include "utilities.h"
@@ -250,6 +251,8 @@ std::string cParser::readToken( bool ToLower, const char *Break ) {
if( ( true == LoadTraction )
|| ( ( false == contains( includefile, "tr/" ) )
&& ( false == contains( includefile, "tra/" ) ) ) ) {
if (Global.ParserLogIncludes)
WriteLog("including: " + includefile);
mIncludeParser = std::make_shared<cParser>( includefile, buffer_FILE, mPath, LoadTraction, readParameters( *this ) );
mIncludeParser->autoclear( m_autoclear );
if( mIncludeParser->mSize <= 0 ) {
@@ -270,6 +273,8 @@ std::string cParser::readToken( bool ToLower, const char *Break ) {
if( ( true == LoadTraction )
|| ( ( false == contains( includefile, "tr/" ) )
&& ( false == contains( includefile, "tra/" ) ) ) ) {
if (Global.ParserLogIncludes)
WriteLog("including: " + includefile);
mIncludeParser = std::make_shared<cParser>( includefile, buffer_FILE, mPath, LoadTraction, readParameters( includeparser ) );
mIncludeParser->autoclear( m_autoclear );
if( mIncludeParser->mSize <= 0 ) {