mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 02:37:04 +00:00
Clean up
This commit is contained in:
@@ -8126,6 +8126,7 @@ void Plater::calib_pa(const Calib_Params& params)
|
|||||||
|
|
||||||
void Plater::_calib_pa_pattern(const Calib_Params& params)
|
void Plater::_calib_pa_pattern(const Calib_Params& params)
|
||||||
{
|
{
|
||||||
|
// add "handle" cube
|
||||||
sidebar().obj_list()->load_generic_subobject("Cube", ModelVolumeType::INVALID);
|
sidebar().obj_list()->load_generic_subobject("Cube", ModelVolumeType::INVALID);
|
||||||
orient();
|
orient();
|
||||||
changed_objects({ 0 });
|
changed_objects({ 0 });
|
||||||
@@ -8168,6 +8169,7 @@ void Plater::_calib_pa_pattern(const Calib_Params& params)
|
|||||||
model()
|
model()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// scale cube to suit test
|
||||||
GizmoObjectManipulation& giz_obj_manip = p->view3D->get_canvas3d()->
|
GizmoObjectManipulation& giz_obj_manip = p->view3D->get_canvas3d()->
|
||||||
get_gizmos_manager().get_object_manipulation();
|
get_gizmos_manager().get_object_manipulation();
|
||||||
giz_obj_manip.set_uniform_scaling(true);
|
giz_obj_manip.set_uniform_scaling(true);
|
||||||
@@ -10342,10 +10344,10 @@ void Plater::reslice()
|
|||||||
this->stop_jobs();
|
this->stop_jobs();
|
||||||
|
|
||||||
// regenerate CalibPressureAdvancePattern custom G-code to apply changes
|
// regenerate CalibPressureAdvancePattern custom G-code to apply changes
|
||||||
if (this->model().calib_pa_pattern) {
|
if (model().calib_pa_pattern) {
|
||||||
this->model().calib_pa_pattern->generate_custom_gcodes(
|
model().calib_pa_pattern->generate_custom_gcodes(
|
||||||
this->model(),
|
model(),
|
||||||
this->fff_print().get_plate_origin()
|
fff_print().get_plate_origin()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user