mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-05 16:51:07 -07:00
ENH: add back use_relative_e for third party printer
Useless for BambuPrinter. But used by third party printer Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: Ib6a63e78816b25696c25952508f76c3d9221e363
This commit is contained in:
parent
9bd0e3e85b
commit
766abf92fa
13 changed files with 31 additions and 23 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.) {
|
||||
|
|
@ -62,7 +62,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