This commit is contained in:
Filip Sykala 2021-07-20 12:05:44 +02:00
parent 2a2530924f
commit 6464a5b698

View file

@ -114,7 +114,7 @@ void GLGizmoSimplify::on_render_input_window(float x, float y, float bottom_limi
if (state == State::settings) { if (state == State::settings) {
if (m_imgui->button(_L("Cancel"))) { if (m_imgui->button(_L("Cancel"))) {
if (original_its.has_value()) { if (original_its.has_value()) {
set_its(*original_its); set_its(*original_its);
state = State::close_on_end; state = State::close_on_end;
} else { } else {
close(); close();
@ -127,7 +127,7 @@ void GLGizmoSimplify::on_render_input_window(float x, float y, float bottom_limi
process(); process();
} }
ImGui::SameLine(); ImGui::SameLine();
if (m_imgui->button(_L("Aply"))) { if (m_imgui->button(_L("Apply"))) {
if (!is_valid_result) { if (!is_valid_result) {
state = State::close_on_end; state = State::close_on_end;
process(); process();