mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-31 22:06:59 +00:00
Give value of config to const m_initial_config, not ref
This commit is contained in:
@@ -343,7 +343,7 @@ void CalibPressureAdvanceLine::delta_modify_start(double& startx, double& starty
|
|||||||
|
|
||||||
CalibPressureAdvancePattern::CalibPressureAdvancePattern(
|
CalibPressureAdvancePattern::CalibPressureAdvancePattern(
|
||||||
const Calib_Params& params,
|
const Calib_Params& params,
|
||||||
DynamicPrintConfig& config,
|
DynamicPrintConfig config,
|
||||||
const bool& is_bbl_machine,
|
const bool& is_bbl_machine,
|
||||||
Model& model
|
Model& model
|
||||||
) :
|
) :
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ friend struct DrawBoxOptArgs;
|
|||||||
public:
|
public:
|
||||||
CalibPressureAdvancePattern(
|
CalibPressureAdvancePattern(
|
||||||
const Calib_Params& params,
|
const Calib_Params& params,
|
||||||
DynamicPrintConfig& config,
|
DynamicPrintConfig config,
|
||||||
const bool& is_bbl_machine,
|
const bool& is_bbl_machine,
|
||||||
Model& model
|
Model& model
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -8160,7 +8160,7 @@ void Plater::_calib_pa_pattern(const Calib_Params& params)
|
|||||||
wxGetApp().get_tab(Preset::TYPE_PRINT)->update_dirty();
|
wxGetApp().get_tab(Preset::TYPE_PRINT)->update_dirty();
|
||||||
wxGetApp().get_tab(Preset::TYPE_PRINT)->reload_config();
|
wxGetApp().get_tab(Preset::TYPE_PRINT)->reload_config();
|
||||||
|
|
||||||
DynamicPrintConfig full_config = wxGetApp().preset_bundle->full_config();
|
const DynamicPrintConfig full_config = wxGetApp().preset_bundle->full_config();
|
||||||
PresetBundle* preset_bundle = wxGetApp().preset_bundle;
|
PresetBundle* preset_bundle = wxGetApp().preset_bundle;
|
||||||
CalibPressureAdvancePattern pa_pattern(
|
CalibPressureAdvancePattern pa_pattern(
|
||||||
params,
|
params,
|
||||||
|
|||||||
Reference in New Issue
Block a user