mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-04 20:44:00 -06:00
Fix move gizmo on parts (#4138)
This commit is contained in:
parent
8ce07d3e8e
commit
7e78f0d64f
1 changed files with 2 additions and 5 deletions
|
@ -266,11 +266,8 @@ void GizmoObjectManipulation::change_position_value(int axis, double value)
|
|||
selection.setup_cache();
|
||||
TransformationType trafo_type;
|
||||
trafo_type.set_relative();
|
||||
switch (m_coordinates_type)
|
||||
{
|
||||
case ECoordinatesType::Instance: { trafo_type.set_instance(); break; }
|
||||
case ECoordinatesType::Local: { trafo_type.set_local(); break; }
|
||||
default: { break; }
|
||||
if (selection.requires_local_axes()) {
|
||||
trafo_type.set_local();
|
||||
}
|
||||
selection.translate(position - m_cache.position, trafo_type);
|
||||
m_glcanvas.do_move(L("Set Position"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue