mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
Enable absolute/relative extrusion option on non BBL printers (#205)
Add the option to use non-relative extrusion in printer config screen. Some extruders do not play well with relative extrusion... Remove reference to multi-extruder Remove reference to multi-extruder change g-code comment for M83 relative extrusion changed comment for M83 Remove commented line of code In this specific case, we delete the old line of code because it refers to a variable that was deleted from the rest of the code (RELATIVE_E_AXIS)
This commit is contained in:
parent
594c22cde0
commit
5692e02c54
13 changed files with 43 additions and 30 deletions
|
@ -22,7 +22,7 @@ double Extruder::extrude(double dE)
|
|||
{
|
||||
// BBS
|
||||
if (m_share_extruder) {
|
||||
if (RELATIVE_E_AXIS)
|
||||
if (m_config->use_relative_e_distances)
|
||||
m_share_E = 0.;
|
||||
m_share_E += dE;
|
||||
m_absolute_E += dE;
|
||||
|
@ -30,7 +30,7 @@ double Extruder::extrude(double dE)
|
|||
m_share_retracted -= dE;
|
||||
} else {
|
||||
// in case of relative E distances we always reset to 0 before any output
|
||||
if (RELATIVE_E_AXIS)
|
||||
if (m_config->use_relative_e_distances)
|
||||
m_E = 0.;
|
||||
m_E += dE;
|
||||
m_absolute_E += dE;
|
||||
|
@ -51,7 +51,7 @@ double Extruder::retract(double length, double restart_extra)
|
|||
{
|
||||
// BBS
|
||||
if (m_share_extruder) {
|
||||
if (RELATIVE_E_AXIS)
|
||||
if (m_config->use_relative_e_distances)
|
||||
m_share_E = 0.;
|
||||
double to_retract = std::max(0., length - m_share_retracted);
|
||||
if (to_retract > 0.) {
|
||||
|
@ -63,7 +63,7 @@ double Extruder::retract(double length, double restart_extra)
|
|||
return to_retract;
|
||||
} else {
|
||||
// in case of relative E distances we always reset to 0 before any output
|
||||
if (RELATIVE_E_AXIS)
|
||||
if (m_config->use_relative_e_distances)
|
||||
m_E = 0.;
|
||||
double to_retract = std::max(0., length - m_retracted);
|
||||
if (to_retract > 0.) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue