(Hopefully) fix temp tower generating PA pattern

This commit is contained in:
thewildmage 2023-07-18 09:26:01 -06:00
parent 925bf447e7
commit 0aa1206886
No known key found for this signature in database
GPG key ID: 832A606275CDAAD2

View file

@ -10351,7 +10351,9 @@ void Plater::reslice()
this->stop_jobs();
// regenerate CalibPressureAdvancePattern custom G-code to apply changes
if (model().calib_pa_pattern) {
if (p->background_process.fff_print()->calib_mode() == CalibMode::Calib_PA_Pattern) {
assert(model().calib_pa_pattern);
PresetBundle* preset_bundle = wxGetApp().preset_bundle;
model().calib_pa_pattern->generate_custom_gcodes(