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); else lastmessages.push_back(msg);
} }
if (!outputhandler) { if (!OpenSCAD::quiet) {
fprintf(stderr, "%s\n", msg.c_str()); if (!outputhandler) {
} else { fprintf(stderr, "%s\n", msg.c_str());
outputhandler(msg, outputhandler_data); } else {
outputhandler(msg, outputhandler_data);
}
} }
} }