ENABLE_SHADERS_MANAGER -> Fixed crash while rendering selection hints
This commit is contained in:
parent
4eb1b9432f
commit
8a9dbb3414
2 changed files with 8 additions and 8 deletions
|
@ -1108,14 +1108,14 @@ void GCodeViewer::render_legend() const
|
|||
ImGui::PushStyleColor(ImGuiCol_Text, ORANGE);
|
||||
switch (m_view_type)
|
||||
{
|
||||
case EViewType::FeatureType: { imgui.text(_u8L("Feature type")); break; }
|
||||
case EViewType::Height: { imgui.text(_u8L("Height (mm)")); break; }
|
||||
case EViewType::Width: { imgui.text(_u8L("Width (mm)")); break; }
|
||||
case EViewType::Feedrate: { imgui.text(_u8L("Speed (mm/s)")); break; }
|
||||
case EViewType::FanSpeed: { imgui.text(_u8L("Fan Speed (%%)")); break; }
|
||||
case EViewType::FeatureType: { imgui.text(_u8L("Feature type")); break; }
|
||||
case EViewType::Height: { imgui.text(_u8L("Height (mm)")); break; }
|
||||
case EViewType::Width: { imgui.text(_u8L("Width (mm)")); break; }
|
||||
case EViewType::Feedrate: { imgui.text(_u8L("Speed (mm/s)")); break; }
|
||||
case EViewType::FanSpeed: { imgui.text(_u8L("Fan Speed (%%)")); break; }
|
||||
case EViewType::VolumetricRate: { imgui.text(_u8L("Volumetric flow rate (mm³/s)")); break; }
|
||||
case EViewType::Tool: { imgui.text(_u8L("Tool")); break; }
|
||||
case EViewType::ColorPrint: { imgui.text(_u8L("Color Print")); break; }
|
||||
case EViewType::Tool: { imgui.text(_u8L("Tool")); break; }
|
||||
case EViewType::ColorPrint: { imgui.text(_u8L("Color Print")); break; }
|
||||
default: { break; }
|
||||
}
|
||||
ImGui::PopStyleColor();
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <boost/log/trivial.hpp>
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
|
||||
static const float UNIFORM_SCALE_COLOR[3] = { 1.0f, 0.38f, 0.0f };
|
||||
static const float UNIFORM_SCALE_COLOR[4] = { 0.923f, 0.504f, 0.264f, 1.0f };
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
|
Loading…
Reference in a new issue