FillBase: Use logging instead of printf
This commit is contained in:
parent
fa7debf49d
commit
6bf335409f
@ -21,6 +21,8 @@
|
|||||||
#include "FillAdaptive.hpp"
|
#include "FillAdaptive.hpp"
|
||||||
#include "FillLightning.hpp"
|
#include "FillLightning.hpp"
|
||||||
|
|
||||||
|
#include <boost/log/trivial.hpp>
|
||||||
|
|
||||||
// #define INFILL_DEBUG_OUTPUT
|
// #define INFILL_DEBUG_OUTPUT
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
@ -129,8 +131,8 @@ std::pair<float, Point> Fill::_infill_direction(const Surface *surface) const
|
|||||||
float out_angle = this->angle;
|
float out_angle = this->angle;
|
||||||
|
|
||||||
if (out_angle == FLT_MAX) {
|
if (out_angle == FLT_MAX) {
|
||||||
//FIXME Vojtech: Add a warning?
|
assert(false);
|
||||||
printf("Using undefined infill angle\n");
|
BOOST_LOG_TRIVIAL(error) << "Using undefined infill angle";
|
||||||
out_angle = 0.f;
|
out_angle = 0.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user