Ignore modelgen commands with lex->flags.preprocessing
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 14:44:45 +0000 (15:44 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 14:44:45 +0000 (15:44 +0100)
lexer.c

diff --git a/lexer.c b/lexer.c
index 258fb97..5c9b7ee 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -969,7 +969,7 @@ int lex_do(lex_file *lex)
     }
 
     /* modelgen / spiritgen commands */
-    if (ch == '$') {
+    if (ch == '$' && !lex->flags.preprocessing) {
         const char *v;
         size_t frame;