mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 10:51:22 +00:00
Make pattern actually move with handle
This commit is contained in:
@@ -8155,14 +8155,6 @@ void Plater::_calib_pa_pattern(const Calib_Params& params)
|
||||
);
|
||||
center_selection();
|
||||
|
||||
BoundingBoxf3 bbox;
|
||||
for (const ModelObject* obj : model().objects) {
|
||||
for (size_t i = 0; i < obj->instances.size(); ++i) {
|
||||
bbox.merge(obj->instance_bounding_box(i, false));
|
||||
}
|
||||
}
|
||||
pa_pattern.starting_point(Vec3d(bbox.min.x(), bbox.max.y(), 0), model());
|
||||
|
||||
DynamicPrintConfig* print_config = &wxGetApp().preset_bundle->prints.get_edited_preset().config;
|
||||
DynamicPrintConfig* printerConfig = &wxGetApp().preset_bundle->printers.get_edited_preset().config;
|
||||
DynamicPrintConfig* filament_config = &wxGetApp().preset_bundle->filaments.get_edited_preset().config;
|
||||
|
||||
@@ -916,10 +916,6 @@ 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);
|
||||
}
|
||||
|
||||
ensure_not_below_bed();
|
||||
set_bounding_boxes_dirty();
|
||||
wxGetApp().plater()->canvas3D()->requires_check_outside_state();
|
||||
|
||||
Reference in New Issue
Block a user