mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-13 23:43:03 +00:00
Store CalibPressureAdvancePattern with model
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user