mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 13:47:59 -06:00
Fixed debug build
This commit is contained in:
parent
6b6b086948
commit
4a7f078527
2 changed files with 4 additions and 1 deletions
|
@ -17,7 +17,7 @@ static bool obj_parseline(const char *line, ObjData &data)
|
||||||
if (*line == 0)
|
if (*line == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
assert(is_decimal_separator_point());
|
assert(Slic3r::is_decimal_separator_point());
|
||||||
|
|
||||||
// Ignore whitespaces at the beginning of the line.
|
// Ignore whitespaces at the beginning of the line.
|
||||||
//FIXME is this a good idea?
|
//FIXME is this a good idea?
|
||||||
|
|
|
@ -357,6 +357,8 @@ std::vector<PerExtruderAdjustments> CoolingBuffer::parse_layer_gcode(const std::
|
||||||
for (; *c == ' ' || *c == '\t'; ++ c);
|
for (; *c == ' ' || *c == '\t'; ++ c);
|
||||||
if (*c == 0 || *c == ';')
|
if (*c == 0 || *c == ';')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
assert(is_decimal_separator_point()); // for atof
|
||||||
// Parse the axis.
|
// Parse the axis.
|
||||||
size_t axis = (*c >= 'X' && *c <= 'Z') ? (*c - 'X') :
|
size_t axis = (*c >= 'X' && *c <= 'Z') ? (*c - 'X') :
|
||||||
(*c == extrusion_axis) ? 3 : (*c == 'F') ? 4 : size_t(-1);
|
(*c == extrusion_axis) ? 3 : (*c == 'F') ? 4 : size_t(-1);
|
||||||
|
@ -454,6 +456,7 @@ std::vector<PerExtruderAdjustments> CoolingBuffer::parse_layer_gcode(const std::
|
||||||
line.type = CoolingLine::TYPE_G4;
|
line.type = CoolingLine::TYPE_G4;
|
||||||
size_t pos_S = sline.find('S', 3);
|
size_t pos_S = sline.find('S', 3);
|
||||||
size_t pos_P = sline.find('P', 3);
|
size_t pos_P = sline.find('P', 3);
|
||||||
|
assert(is_decimal_separator_point()); // for atof
|
||||||
line.time = line.time_max = float(
|
line.time = line.time_max = float(
|
||||||
(pos_S > 0) ? atof(sline.c_str() + pos_S + 1) :
|
(pos_S > 0) ? atof(sline.c_str() + pos_S + 1) :
|
||||||
(pos_P > 0) ? atof(sline.c_str() + pos_P + 1) * 0.001 : 0.);
|
(pos_P > 0) ? atof(sline.c_str() + pos_P + 1) * 0.001 : 0.);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue