Reset buttons: synchronization of instances/volumes
This commit is contained in:
parent
980c6673d4
commit
7b07a8da83
2 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue