Tech ENABLE_SHOW_TOOLPATHS_COG - Show toolpaths center of gravity
This commit is contained in:
parent
f6c7fefec2
commit
92aa6540f5
15 changed files with 407 additions and 37 deletions
|
@ -1600,6 +1600,10 @@ void GLCanvas3D::render()
|
|||
#if ENABLE_RENDER_SELECTION_CENTER
|
||||
_render_selection_center();
|
||||
#endif // ENABLE_RENDER_SELECTION_CENTER
|
||||
#if ENABLE_SHOW_TOOLPATHS_COG
|
||||
if (!m_main_toolbar.is_enabled())
|
||||
_render_gcode_cog();
|
||||
#endif // ENABLE_SHOW_TOOLPATHS_COG
|
||||
|
||||
// we need to set the mouse's scene position here because the depth buffer
|
||||
// could be invalidated by the following gizmo render methods
|
||||
|
@ -5415,6 +5419,13 @@ void GLCanvas3D::_render_gcode()
|
|||
m_gcode_viewer.render();
|
||||
}
|
||||
|
||||
#if ENABLE_SHOW_TOOLPATHS_COG
|
||||
void GLCanvas3D::_render_gcode_cog()
|
||||
{
|
||||
m_gcode_viewer.render_cog();
|
||||
}
|
||||
#endif // ENABLE_SHOW_TOOLPATHS_COG
|
||||
|
||||
void GLCanvas3D::_render_selection()
|
||||
{
|
||||
float scale_factor = 1.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue