mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Don't hide some properties for non-extrusion moves
This commit is contained in:
@@ -376,13 +376,8 @@ void GCodeViewer::SequentialView::Marker::render_position_window(const libvgcode
|
|||||||
ImGuiWrapper::text(text);
|
ImGuiWrapper::text(text);
|
||||||
});
|
});
|
||||||
append_table_row(_u8L("Speed") + " (" + _u8L("mm/s") + ")", [&vertex, &buff]() {
|
append_table_row(_u8L("Speed") + " (" + _u8L("mm/s") + ")", [&vertex, &buff]() {
|
||||||
std::string text;
|
sprintf(buff, "%.1f", vertex.feedrate);
|
||||||
if (vertex.is_extrusion()) {
|
const std::string text = std::string(buff);
|
||||||
sprintf(buff, "%.1f", vertex.feedrate);
|
|
||||||
text = std::string(buff);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
text = _u8L("N/A");
|
|
||||||
ImGuiWrapper::text(text);
|
ImGuiWrapper::text(text);
|
||||||
});
|
});
|
||||||
append_table_row(_u8L("Volumetric flow rate") + " (" + _u8L("mm³/s") + ")", [&vertex, &buff]() {
|
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);
|
ImGuiWrapper::text(text);
|
||||||
});
|
});
|
||||||
append_table_row(_u8L("Fan speed") + " (" + _u8L("%") + ")", [&vertex, &buff]() {
|
append_table_row(_u8L("Fan speed") + " (" + _u8L("%") + ")", [&vertex, &buff]() {
|
||||||
std::string text;
|
sprintf(buff, "%.0f", vertex.fan_speed);
|
||||||
if (vertex.is_extrusion()) {
|
const std::string text = std::string(buff);
|
||||||
sprintf(buff, "%.0f", vertex.fan_speed);
|
|
||||||
text = std::string(buff);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
text = _u8L("N/A");
|
|
||||||
ImGuiWrapper::text(text);
|
ImGuiWrapper::text(text);
|
||||||
});
|
});
|
||||||
append_table_row(_u8L("Temperature") + " (" + _u8L("°C") + ")", [&vertex, &buff]() {
|
append_table_row(_u8L("Temperature") + " (" + _u8L("°C") + ")", [&vertex, &buff]() {
|
||||||
|
|||||||
Reference in New Issue
Block a user