Store CalibPressureAdvancePattern with model

This commit is contained in:
thewildmage
2023-07-05 21:18:38 -06:00
parent c2cfa8d61c
commit e35a8a162f
2 changed files with 4 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
#include "SLA/Hollowing.hpp"
#include "TriangleMesh.hpp"
#include "CustomGCode.hpp"
#include "calib.hpp"
#include "enum_bitmask.hpp"
//BBS: add bbs 3mf
@@ -1608,6 +1609,8 @@ public:
// Checks if any of objects is painted using the multi-material painting gizmo.
bool is_mm_painted() const;
std::unique_ptr<CalibPressureAdvancePattern> calib_pa_pattern;
private:
explicit Model(int) : ObjectBase(-1)
{

View File

@@ -8181,6 +8181,7 @@ void Plater::_calib_pa_pattern(const Calib_Params& params)
wxGetApp().get_tab(Preset::TYPE_FILAMENT)->reload_config();
model().plates_custom_gcodes[model().curr_plate_index] = pa_pattern.generate_gcodes();
model().calib_pa_pattern = std::make_unique<CalibPressureAdvancePattern>(pa_pattern);
}
void Plater::_calib_pa_tower(const Calib_Params& params) {