Make PRINT_NOCACHE respect OpenSCAD::quiet

master
Liam Marshall 2015-05-13 11:21:55 -05:00
parent 061537e773
commit 5239121706
1 changed files with 6 additions and 4 deletions

View File

@ -64,10 +64,12 @@ void PRINT_NOCACHE(const std::string &msg)
else lastmessages.push_back(msg);
}
if (!outputhandler) {
fprintf(stderr, "%s\n", msg.c_str());
} else {
outputhandler(msg, outputhandler_data);
if (!OpenSCAD::quiet) {
if (!outputhandler) {
fprintf(stderr, "%s\n", msg.c_str());
} else {
outputhandler(msg, outputhandler_data);
}
}
}