mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 06:45:56 +08:00
Disable function "face to camera"
This commit is contained in:
parent
a2139d4eb4
commit
47dd1106b4
@ -2952,6 +2952,7 @@ void GLGizmoEmboss::draw_advanced()
|
||||
process();
|
||||
}
|
||||
|
||||
/*
|
||||
if (ImGui::Button(_u8L("Set text to face camera").c_str())) {
|
||||
assert(get_selected_volume(m_parent.get_selection()) == m_volume);
|
||||
const Camera &cam = wxGetApp().plater()->get_camera();
|
||||
@ -2965,6 +2966,7 @@ void GLGizmoEmboss::draw_advanced()
|
||||
} else if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("%s", _u8L("Orient the text towards the camera.").c_str());
|
||||
}
|
||||
*/
|
||||
|
||||
//ImGui::SameLine(); if (ImGui::Button("Re-emboss")) GLGizmoEmboss::re_emboss(*m_volume);
|
||||
|
||||
@ -3715,9 +3717,9 @@ GuiCfg create_gui_configuration()
|
||||
+ 2 * (cfg.icon_width + space);
|
||||
cfg.minimal_window_size = ImVec2(window_width, window_height);
|
||||
|
||||
// 9 = useSurface, charGap, lineGap, bold, italic, surfDist, rotation, keepUp, textFaceToCamera
|
||||
// 9 = useSurface, charGap, lineGap, bold, italic, surfDist, rotation, keepUp
|
||||
// 4 = 1px for fix each edit image of drag float
|
||||
float advance_height = input_height * 10 + 9;
|
||||
float advance_height = input_height * 9 + 9;
|
||||
cfg.minimal_window_size_with_advance =
|
||||
ImVec2(cfg.minimal_window_size.x,
|
||||
cfg.minimal_window_size.y + advance_height);
|
||||
|
@ -1347,12 +1347,14 @@ void GLGizmoSVG::draw_window()
|
||||
draw_rotation();
|
||||
draw_mirroring();
|
||||
|
||||
/*
|
||||
if (ImGui::Button(_u8L("Face the camera").c_str())) {
|
||||
const Camera &cam = wxGetApp().plater()->get_camera();
|
||||
if (face_selected_volume_to_camera(cam, m_parent) &&
|
||||
m_volume->emboss_shape->projection.use_surface)
|
||||
process();
|
||||
}
|
||||
*/
|
||||
|
||||
ImGui::Unindent(m_gui_cfg->icon_width);
|
||||
|
||||
@ -2139,7 +2141,7 @@ GuiCfg create_gui_configuration() {
|
||||
cfg.texture_max_size_px + 2 * style.FramePadding.y + // preview (-- not sure with padding -> fix retina height)
|
||||
line_height_with_spacing + // filename
|
||||
separator_height + // separator - orange line
|
||||
input_height * 7 + // depth + size + use_surface + FromSurface + Rotation + Mirror + FaceTheCamera
|
||||
input_height * 6 + // depth + size + use_surface + FromSurface + Rotation + Mirror
|
||||
2 * style.WindowPadding.y;
|
||||
cfg.window_size_for_object = ImVec2(std::max(window_input_width, window_image_width), window_height);
|
||||
float change_type_height = separator_height + line_height_with_spacing + input_height;
|
||||
|
Loading…
x
Reference in New Issue
Block a user