mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Selection enabled only for 3D view and not for g-code preview
This commit is contained in:
parent
3c163285e5
commit
a4f404a6a4
6 changed files with 13 additions and 3 deletions
|
@ -2249,7 +2249,7 @@ bool GLCanvas3D::init(bool useVBOs, bool use_legacy_opengl)
|
|||
if (!_init_toolbar())
|
||||
return false;
|
||||
|
||||
if (!m_selection.init(m_use_VBOs))
|
||||
if (m_selection.is_enabled() && !m_selection.init(m_use_VBOs))
|
||||
return false;
|
||||
|
||||
post_event(SimpleEvent(EVT_GLCANVAS_INIT));
|
||||
|
@ -2433,6 +2433,11 @@ void GLCanvas3D::enable_gizmos(bool enable)
|
|||
m_gizmos.set_enabled(enable);
|
||||
}
|
||||
|
||||
void GLCanvas3D::enable_selection(bool enable)
|
||||
{
|
||||
m_selection.set_enabled(enable);
|
||||
}
|
||||
|
||||
void GLCanvas3D::enable_toolbar(bool enable)
|
||||
{
|
||||
m_toolbar.set_enabled(enable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue