FIX:Imgui's StyleVar not pop according to PushStyleVar
Jira: STUDIO-5000 Change-Id: I4bdafb41404651a19a211e2e1eec78169ff8b9f3
This commit is contained in:
parent
7a29a49f9e
commit
295c40709f
|
@ -2000,6 +2000,7 @@ void GLGizmoAdvancedCut::render_cut_plane_input_window(float x, float y, float b
|
|||
m_imgui->disabled_end();
|
||||
ImGui::SameLine();
|
||||
const bool reset_clicked = m_imgui->button(_L("Reset"));
|
||||
ImGui::PopStyleVar(2);
|
||||
if (reset_clicked) { reset_all(); }
|
||||
}
|
||||
|
||||
|
|
|
@ -140,11 +140,11 @@ bool MeshClipper::has_valid_contour() const
|
|||
}
|
||||
|
||||
std::vector<Vec3d> MeshClipper::point_per_contour() const {
|
||||
assert(m_result);
|
||||
std::vector<Vec3d> out;
|
||||
if (m_result == std::nullopt) {
|
||||
return out;
|
||||
}
|
||||
assert(m_result);
|
||||
for (const CutIsland &isl : m_result->cut_islands) {
|
||||
assert(isl.expoly.contour.size() > 2);
|
||||
// Now return a point lying inside the contour but not in a hole.
|
||||
|
|
Loading…
Reference in New Issue