mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fixed build when ENABLE_GCODE_VIEWER is disabled
This commit is contained in:
parent
73b885fc37
commit
6fbb3db79c
3 changed files with 12 additions and 3 deletions
|
@ -2039,11 +2039,19 @@ void Selection::render_sidebar_scale_hints(const std::string& sidebar_field) con
|
|||
shader->set_uniform("uniform_color", uniform_scale ? UNIFORM_SCALE_COLOR : AXES_COLOR[axis], 4);
|
||||
|
||||
glsafe(::glTranslated(0.0, 5.0, 0.0));
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
m_arrow.render();
|
||||
#else
|
||||
m_arrow->render();
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
|
||||
glsafe(::glTranslated(0.0, -10.0, 0.0));
|
||||
glsafe(::glRotated(180.0, 0.0, 0.0, 1.0));
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
m_arrow.render();
|
||||
#else
|
||||
m_arrow->render();
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
};
|
||||
|
||||
if (boost::ends_with(sidebar_field, "x") || uniform_scale)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue