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