Move Extruder decimals from extruder to printer

supermerill/SuperSlicer#1596
This commit is contained in:
supermerill 2021-09-29 14:20:18 +02:00
parent 64937e2380
commit 344c821382
4 changed files with 2 additions and 5 deletions

View File

@ -39,5 +39,3 @@ group:Retraction when tool is disabled (advanced settings for multi-extruder set
setting:idx:retract_restart_extra_toolchange
group:Preview
reset_to_filament_color
group:Gcode
setting:gcode_precision_e

View File

@ -13,7 +13,7 @@
#define XYZ_NUM(val) PRECISION(val, this->config.gcode_precision_xyz.value)
#define FLOAT_PRECISION(val, precision) std::defaultfloat << std::setprecision(precision) << (val)
#define F_NUM(val) FLOAT_PRECISION(val, 8)
#define E_NUM(val) PRECISION(val, this->config.gcode_precision_e.get_at(m_tool->id()))
#define E_NUM(val) PRECISION(val, this->config.gcode_precision_e.value)
namespace Slic3r {

View File

@ -4685,7 +4685,6 @@ void PrintConfigDef::init_extruder_option_keys()
"extruder_offset",
"extruder_fan_offset",
"extruder_temperature_offset",
"gcode_precision_e",
"tool_name",
"retract_length",
"retract_lift",

View File

@ -1097,7 +1097,7 @@ public:
ConfigOptionEnum<GCodeFlavor> gcode_flavor;
ConfigOptionBool gcode_label_objects;
ConfigOptionInt gcode_precision_xyz;
ConfigOptionInts gcode_precision_e;
ConfigOptionInt gcode_precision_e;
ConfigOptionString layer_gcode;
ConfigOptionString feature_gcode;
ConfigOptionFloat max_gcode_per_second;