mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 04:42:33 +00:00
Store CalibPressureAdvancePattern with model
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
#include "SLA/Hollowing.hpp"
|
#include "SLA/Hollowing.hpp"
|
||||||
#include "TriangleMesh.hpp"
|
#include "TriangleMesh.hpp"
|
||||||
#include "CustomGCode.hpp"
|
#include "CustomGCode.hpp"
|
||||||
|
#include "calib.hpp"
|
||||||
#include "enum_bitmask.hpp"
|
#include "enum_bitmask.hpp"
|
||||||
|
|
||||||
//BBS: add bbs 3mf
|
//BBS: add bbs 3mf
|
||||||
@@ -1608,6 +1609,8 @@ public:
|
|||||||
// Checks if any of objects is painted using the multi-material painting gizmo.
|
// Checks if any of objects is painted using the multi-material painting gizmo.
|
||||||
bool is_mm_painted() const;
|
bool is_mm_painted() const;
|
||||||
|
|
||||||
|
std::unique_ptr<CalibPressureAdvancePattern> calib_pa_pattern;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit Model(int) : ObjectBase(-1)
|
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();
|
wxGetApp().get_tab(Preset::TYPE_FILAMENT)->reload_config();
|
||||||
|
|
||||||
model().plates_custom_gcodes[model().curr_plate_index] = pa_pattern.generate_gcodes();
|
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) {
|
void Plater::_calib_pa_tower(const Calib_Params& params) {
|
||||||
|
|||||||
Reference in New Issue
Block a user