Another fix on volumes translation

This commit is contained in:
Enrico Turri 2018-12-19 15:03:49 +01:00
parent 918cb48d45
commit 2548253d59
3 changed files with 14 additions and 12 deletions

View file

@ -361,8 +361,9 @@ void ObjectManipulation::update_rotation_value(const Vec3d& rotation)
void ObjectManipulation::change_position_value(const Vec3d& position)
{
auto canvas = wxGetApp().plater()->canvas3D();
canvas->get_selection().start_dragging();
canvas->get_selection().translate(position - cache_position);
GLCanvas3D::Selection& selection = canvas->get_selection();
selection.start_dragging();
selection.translate(position - cache_position, selection.requires_local_axes());
canvas->do_move();
cache_position = position;