FIX: missed manually entered values for secondary processing

Jira: STUDIO-4964
Change-Id: I5cf0da1ae77cccd34de05b4a0318a751ac9f6753
This commit is contained in:
zhou.xu 2023-11-06 11:16:50 +08:00 committed by Lane.Wei
parent 48644e1fb4
commit 8aa0c06137
1 changed files with 7 additions and 1 deletions

View File

@ -2397,7 +2397,13 @@ bool GLGizmoAdvancedCut::render_slider_double_input_by_format(const std::string
ImGui::SameLine(left_width);
ImGui::PushItemWidth(first_input_width);
if (ImGui::BBLDragFloat(("##input_" + label).c_str(), &value, 0.05f, value_min, value_max, format.c_str())) {
value_in = value * 0.01f;
if (show_type == DoubleShowType::PERCENTAGE) {
value_in = value * 0.01f;
} else if (show_type == DoubleShowType::DEGREE) {
value_in = Geometry::deg2rad(value);
} else { //(show_type == DoubleShowType::Normal)
value_in = value;
}
}
return !is_approx(old_val, value_in);
}