mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 09:29:02 +08:00
Do not generate data for support generator when supports are not needed
This commit is contained in:
parent
60e8163900
commit
025e4698c8
@ -558,7 +558,6 @@ void SLAPrint::Steps::prepare_for_generate_supports(SLAPrintObject &po) {
|
|||||||
if (std::round(current_status()) < std::round(current))
|
if (std::round(current_status()) < std::round(current))
|
||||||
report_status(current, OBJ_STEP_LABELS(slaposSupportPoints));
|
report_status(current, OBJ_STEP_LABELS(slaposSupportPoints));
|
||||||
};
|
};
|
||||||
|
|
||||||
po.m_support_point_generator_data =
|
po.m_support_point_generator_data =
|
||||||
prepare_generator_data(std::move(slices), heights, prepare_cfg, cancel, status);
|
prepare_generator_data(std::move(slices), heights, prepare_cfg, cancel, status);
|
||||||
}
|
}
|
||||||
@ -637,8 +636,10 @@ void SLAPrint::Steps::slice_model(SLAPrintObject &po)
|
|||||||
// We apply the printer correction offset here.
|
// We apply the printer correction offset here.
|
||||||
apply_printer_corrections(po, soModel);
|
apply_printer_corrections(po, soModel);
|
||||||
|
|
||||||
// We need to prepare data in previous step to create interactive support point generation
|
// Prepare data for the support point generator only when supports are enabled
|
||||||
prepare_for_generate_supports(po);
|
if (po.m_config.supports_enable.getBool())
|
||||||
|
// We need to prepare data in previous step to create interactive support point generation
|
||||||
|
prepare_for_generate_supports(po);
|
||||||
// po.m_preview_meshes[slaposObjectSlice] = po.get_mesh_to_print();
|
// po.m_preview_meshes[slaposObjectSlice] = po.get_mesh_to_print();
|
||||||
// report_status(-2, "", SlicingStatus::RELOAD_SLA_PREVIEW);
|
// report_status(-2, "", SlicingStatus::RELOAD_SLA_PREVIEW);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user