Merge remote-tracking branch 'PRIVATE/master' into ys_cut
This commit is contained in:
commit
737117e474
52 changed files with 2959 additions and 262 deletions
|
@ -834,14 +834,14 @@ void GLCanvas3D::Labels::render(const std::vector<const ModelInstance*>& sorted_
|
|||
imgui.begin(owner.title, ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove);
|
||||
ImGui::BringWindowToDisplayFront(ImGui::GetCurrentWindow());
|
||||
float win_w = ImGui::GetWindowWidth();
|
||||
float label_len = imgui.calc_text_size(owner.label).x;
|
||||
float label_len = ImGui::CalcTextSize(owner.label.c_str()).x;
|
||||
ImGui::SetCursorPosX(0.5f * (win_w - label_len));
|
||||
ImGui::AlignTextToFramePadding();
|
||||
imgui.text(owner.label);
|
||||
|
||||
if (!owner.print_order.empty()) {
|
||||
ImGui::Separator();
|
||||
float po_len = imgui.calc_text_size(owner.print_order).x;
|
||||
float po_len = ImGui::CalcTextSize(owner.print_order.c_str()).x;
|
||||
ImGui::SetCursorPosX(0.5f * (win_w - po_len));
|
||||
ImGui::AlignTextToFramePadding();
|
||||
imgui.text(owner.print_order);
|
||||
|
@ -4185,7 +4185,7 @@ void GLCanvas3D::handle_sidebar_focus_event(const std::string& opt_key, bool foc
|
|||
|
||||
void GLCanvas3D::handle_layers_data_focus_event(const t_layer_height_range range, const EditorType type)
|
||||
{
|
||||
std::string field = "layer_" + std::to_string(type) + "_" + std::to_string(range.first) + "_" + std::to_string(range.second);
|
||||
std::string field = "layer_" + std::to_string(type) + "_" + float_to_string_decimal_point(range.first) + "_" + float_to_string_decimal_point(range.second);
|
||||
handle_sidebar_focus_event(field, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue