Move pattern when handle moves

This commit is contained in:
thewildmage
2023-07-05 21:20:16 -06:00
parent 89df84a810
commit 8be41ba2f4

View File

@@ -916,6 +916,14 @@ void Selection::translate(const Vec3d& displacement, bool local)
synchronize_unselected_volumes();
#endif // !DISABLE_INSTANCES_SYNCH
if (m_model->calib_pa_pattern) {
m_model->calib_pa_pattern->translate_starting_point(displacement);
m_model->plates_custom_gcodes[m_model->curr_plate_index] =
m_model->calib_pa_pattern->generate_gcodes()
;
}
ensure_not_below_bed();
set_bounding_boxes_dirty();
wxGetApp().plater()->canvas3D()->requires_check_outside_state();