Remove side effects from setter for enable picking.
This commit is contained in:
parent
ab30d37c3c
commit
201e9d493f
@ -1407,7 +1407,6 @@ void GLCanvas3D::enable_legend_texture(bool enable)
|
||||
void GLCanvas3D::enable_picking(bool enable)
|
||||
{
|
||||
m_picking_enabled = enable;
|
||||
m_selection.set_mode(Selection::Instance);
|
||||
}
|
||||
|
||||
void GLCanvas3D::enable_moving(bool enable)
|
||||
|
@ -65,6 +65,7 @@ bool View3D::init(wxWindow* parent, Bed3D& bed, Model* model, DynamicPrintConfig
|
||||
m_canvas->allow_multisample(OpenGLManager::can_multisample());
|
||||
|
||||
m_canvas->enable_picking(true);
|
||||
m_canvas->get_selection().set_mode(Selection::Instance);
|
||||
m_canvas->enable_moving(true);
|
||||
// XXX: more config from 3D.pm
|
||||
m_canvas->set_model(model);
|
||||
|
Loading…
Reference in New Issue
Block a user