mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-30 21:00:49 -07:00
Don't hide some properties for non-extrusion moves
This commit is contained in:
parent
e0cdae0cb4
commit
fcdd3d3b2a
1 changed files with 4 additions and 14 deletions
|
|
@ -376,13 +376,8 @@ void GCodeViewer::SequentialView::Marker::render_position_window(const libvgcode
|
|||
ImGuiWrapper::text(text);
|
||||
});
|
||||
append_table_row(_u8L("Speed") + " (" + _u8L("mm/s") + ")", [&vertex, &buff]() {
|
||||
std::string text;
|
||||
if (vertex.is_extrusion()) {
|
||||
sprintf(buff, "%.1f", vertex.feedrate);
|
||||
text = std::string(buff);
|
||||
}
|
||||
else
|
||||
text = _u8L("N/A");
|
||||
sprintf(buff, "%.1f", vertex.feedrate);
|
||||
const std::string text = std::string(buff);
|
||||
ImGuiWrapper::text(text);
|
||||
});
|
||||
append_table_row(_u8L("Volumetric flow rate") + " (" + _u8L("mm³/s") + ")", [&vertex, &buff]() {
|
||||
|
|
@ -396,13 +391,8 @@ void GCodeViewer::SequentialView::Marker::render_position_window(const libvgcode
|
|||
ImGuiWrapper::text(text);
|
||||
});
|
||||
append_table_row(_u8L("Fan speed") + " (" + _u8L("%") + ")", [&vertex, &buff]() {
|
||||
std::string text;
|
||||
if (vertex.is_extrusion()) {
|
||||
sprintf(buff, "%.0f", vertex.fan_speed);
|
||||
text = std::string(buff);
|
||||
}
|
||||
else
|
||||
text = _u8L("N/A");
|
||||
sprintf(buff, "%.0f", vertex.fan_speed);
|
||||
const std::string text = std::string(buff);
|
||||
ImGuiWrapper::text(text);
|
||||
});
|
||||
append_table_row(_u8L("Temperature") + " (" + _u8L("°C") + ")", [&vertex, &buff]() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue