mirror of https://github.com/vitalif/openscad
bugfix: command-line crash on parser error
parent
7a139c2558
commit
512e7bb1be
|
@ -299,6 +299,7 @@ int main(int argc, char **argv)
|
|||
fclose(fp);
|
||||
text << commandline_commands;
|
||||
root_module = parse(text.str().c_str(), fileInfo.absolutePath().toLocal8Bit(), false);
|
||||
if (!root_module) exit(1);
|
||||
}
|
||||
|
||||
QDir::setCurrent(fileInfo.absolutePath());
|
||||
|
|
Loading…
Reference in New Issue