mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-02 12:00:36 +08:00
Fix move gizmo on parts (#4138)
This commit is contained in:
parent
8ce07d3e8e
commit
7e78f0d64f
@ -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…
x
Reference in New Issue
Block a user