mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 04:56:14 +08:00
#645 fix temperature for reprap & first layer temp for multiextruders
This commit is contained in:
parent
77f9280646
commit
78f193787f
@ -222,11 +222,10 @@ void AvoidCrossingPerimeters::init_external_mp(const Print &print)
|
|||||||
std::string();
|
std::string();
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int OozePrevention::_get_temp(GCode& gcodegen)
|
||||||
OozePrevention::_get_temp(GCode& gcodegen)
|
|
||||||
{
|
{
|
||||||
if (gcodegen.writer().tool_is_extruder())
|
if (gcodegen.writer().tool_is_extruder())
|
||||||
return (gcodegen.layer() != NULL && gcodegen.layer()->id() == 0)
|
return (gcodegen.layer() == NULL || gcodegen.layer()->id() == 0)
|
||||||
? gcodegen.config().first_layer_temperature.get_at(gcodegen.writer().tool()->id())
|
? gcodegen.config().first_layer_temperature.get_at(gcodegen.writer().tool()->id())
|
||||||
: gcodegen.config().temperature.get_at(gcodegen.writer().tool()->id());
|
: gcodegen.config().temperature.get_at(gcodegen.writer().tool()->id());
|
||||||
else
|
else
|
||||||
|
@ -166,13 +166,9 @@ std::string GCodeWriter::set_temperature(const unsigned int temperature, bool wa
|
|||||||
}
|
}
|
||||||
gcode << temp_w_offset;
|
gcode << temp_w_offset;
|
||||||
bool multiple_tools = this->multiple_extruders && ! m_single_extruder_multi_material;
|
bool multiple_tools = this->multiple_extruders && ! m_single_extruder_multi_material;
|
||||||
if (tool != -1 && (multiple_tools || FLAVOR_IS(gcfMakerWare) || FLAVOR_IS(gcfSailfish)) ) {
|
if (tool != -1 && (multiple_tools || FLAVOR_IS(gcfMakerWare) || FLAVOR_IS(gcfSailfish)) && FLAVOR_IS_NOT(gcfRepRap)) {
|
||||||
if (FLAVOR_IS(gcfRepRap)) {
|
|
||||||
gcode << " P" << tool;
|
|
||||||
} else {
|
|
||||||
gcode << " T" << tool;
|
gcode << " T" << tool;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
gcode << " ; " << comment << "\n";
|
gcode << " ; " << comment << "\n";
|
||||||
|
|
||||||
if ((FLAVOR_IS(gcfTeacup) || FLAVOR_IS(gcfRepRap)) && wait)
|
if ((FLAVOR_IS(gcfTeacup) || FLAVOR_IS(gcfRepRap)) && wait)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user