mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-15 18:31:47 +08:00
small otimisation
This commit is contained in:
parent
6519452487
commit
dbb6fbe9c3
@ -2909,7 +2909,7 @@ std::string GCode::_before_extrude(const ExtrusionPath &path, const std::string
|
||||
double F = speed * 60; // convert mm/sec to mm/min
|
||||
|
||||
// extrude arc or line
|
||||
if (path.role() != m_last_extrusion_role) {
|
||||
if (path.role() != m_last_extrusion_role && !m_config.feature_gcode.value.empty()) {
|
||||
DynamicConfig config;
|
||||
config.set_key_value("extrusion_role", new ConfigOptionString(extrusion_role_to_string_for_parser(path.role())));
|
||||
config.set_key_value("layer_num", new ConfigOptionInt(m_layer_index + 1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user