mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-01 15:22:21 +00:00
Feat: 1. Vertical and horizontal mode for painting 2. Optimize Camera behavior (#2424)
* fix camera and update locale * Paint horizontally or vertically
This commit is contained in:
@@ -711,6 +711,18 @@ void GLGizmoMmuSegmentation::on_render_input_window(float x, float y, float bott
|
||||
ImGui::BBLDragFloat("##gap_area_input", &TriangleSelectorPatch::gap_area, 0.05f, 0.0f, 0.0f, "%.2f");
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
if(m_imgui->bbl_checkbox(_L("Vertical"), m_vertical_only)){
|
||||
if(m_vertical_only){
|
||||
m_horizontal_only = false;
|
||||
}
|
||||
}
|
||||
if(m_imgui->bbl_checkbox(_L("Horizontal"), m_horizontal_only)){
|
||||
if(m_horizontal_only){
|
||||
m_vertical_only = false;
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(6.0f, 10.0f));
|
||||
float get_cur_y = ImGui::GetContentRegionMax().y + ImGui::GetFrameHeight() + y;
|
||||
|
||||
Reference in New Issue
Block a user