mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-13 23:15:53 +08:00
Reset buttons: synchronization of instances/volumes
This commit is contained in:
parent
980c6673d4
commit
7b07a8da83
@ -216,6 +216,9 @@ ObjectManipulation::ObjectManipulation(wxWindow* parent) :
|
||||
else
|
||||
return;
|
||||
|
||||
selection.synchronize_unselected_instances(Selection::SYNC_ROTATION_GENERAL);
|
||||
selection.synchronize_unselected_volumes();
|
||||
|
||||
canvas->do_mirror();
|
||||
canvas->set_as_dirty();
|
||||
UpdateAndShow(true);
|
||||
@ -294,6 +297,8 @@ ObjectManipulation::ObjectManipulation(wxWindow* parent) :
|
||||
else
|
||||
return;
|
||||
|
||||
selection.synchronize_unselected_instances(Selection::SYNC_ROTATION_GENERAL);
|
||||
selection.synchronize_unselected_volumes();
|
||||
canvas->do_rotate();
|
||||
|
||||
UpdateAndShow(true);
|
||||
|
@ -333,6 +333,8 @@ private:
|
||||
void render_sidebar_rotation_hint(Axis axis) const;
|
||||
void render_sidebar_scale_hint(Axis axis) const;
|
||||
void render_sidebar_size_hint(Axis axis, double length) const;
|
||||
|
||||
public:
|
||||
enum SyncRotationType {
|
||||
// Do not synchronize rotation. Either not rotating at all, or rotating by world Z axis.
|
||||
SYNC_ROTATION_NONE = 0,
|
||||
@ -343,6 +345,8 @@ private:
|
||||
};
|
||||
void synchronize_unselected_instances(SyncRotationType sync_rotation_type);
|
||||
void synchronize_unselected_volumes();
|
||||
|
||||
private:
|
||||
void ensure_on_bed();
|
||||
bool is_from_fully_selected_instance(unsigned int volume_idx) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user