mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fixed part settings updating
This commit is contained in:
parent
d6d632d4fc
commit
5a4cef9ac1
5 changed files with 23 additions and 9 deletions
|
@ -2608,7 +2608,7 @@ wxGLCanvas* Plater::canvas3D()
|
|||
return p->canvas3D;
|
||||
}
|
||||
|
||||
void Plater::changed_object_settings(int obj_idx)
|
||||
void Plater::changed_object(int obj_idx)
|
||||
{
|
||||
if (obj_idx < 0)
|
||||
return;
|
||||
|
@ -2622,6 +2622,7 @@ void Plater::changed_object_settings(int obj_idx)
|
|||
auto model_object = p->model.objects[obj_idx];
|
||||
model_object->center_around_origin();
|
||||
model_object->ensure_on_bed();
|
||||
_3DScene::reload_scene(p->canvas3D, false);
|
||||
}
|
||||
|
||||
// update print
|
||||
|
@ -2632,7 +2633,6 @@ void Plater::changed_object_settings(int obj_idx)
|
|||
auto selections = p->collect_selections();
|
||||
_3DScene::set_objects_selections(p->canvas3D, selections);
|
||||
#endif // !ENABLE_EXTENDED_SELECTION
|
||||
_3DScene::reload_scene(p->canvas3D, false);
|
||||
#if !ENABLE_MODIFIED_CAMERA_TARGET
|
||||
_3DScene::zoom_to_volumes(p->canvas3D);
|
||||
#endif // !ENABLE_MODIFIED_CAMERA_TARGET
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue