Follow-up on fbf2978190: Refresh Cut gizmo immediately,

when state of "inches" checkbox is changed.
+ Fixed update of Z value, when Cut gizmo is in mm
This commit is contained in:
YuSanka 2020-12-14 09:06:19 +01:00
parent 2b3d9359d4
commit 0f11ff8525
2 changed files with 4 additions and 2 deletions

View file

@ -180,8 +180,7 @@ void GLGizmoCut::on_render_input_window(float x, float y, float bottom_limit)
ImGui::SameLine();
m_imgui->text(imperial_units ? _L("in") : _L("mm"));
if (imperial_units)
m_cut_z = cut_z * ObjectManipulation::in_to_mm;
m_cut_z = cut_z * (imperial_units ? ObjectManipulation::in_to_mm : 1.0);
ImGui::Separator();