mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06: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
|
@ -34,7 +34,7 @@ public:
|
|||
double retract(double length, double restart_extra);
|
||||
double unretract();
|
||||
double E() const { return m_share_extruder ? m_share_E : m_E; }
|
||||
void reset_E() { m_E = 0.; }
|
||||
void reset_E() { m_E = 0.; m_share_E = 0.; }
|
||||
double e_per_mm(double mm3_per_mm) const { return mm3_per_mm * m_e_per_mm3; }
|
||||
double e_per_mm3() const { return m_e_per_mm3; }
|
||||
// Used filament volume in mm^3.
|
||||
|
@ -64,7 +64,7 @@ private:
|
|||
GCodeConfig *m_config;
|
||||
// Print-wide global ID of this extruder.
|
||||
unsigned int m_id;
|
||||
// Current state of the extruder axis, may be resetted if relative_e_axis.
|
||||
// Current state of the extruder axis, may be resetted if use_relative_e_distance.
|
||||
double m_E;
|
||||
// Current state of the extruder tachometer, used to output the extruded_volume() and used_filament() statistics.
|
||||
double m_absolute_E;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue