mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-21 04:13:50 +00:00
GLCanvas3d::on_render(): if not intialized yet,
Call render directly, so it gets initialized immediately, not from On Idle handler.
This commit is contained in:
@@ -5657,7 +5657,11 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
|||||||
|
|
||||||
void GLCanvas3D::on_paint(wxPaintEvent& evt)
|
void GLCanvas3D::on_paint(wxPaintEvent& evt)
|
||||||
{
|
{
|
||||||
m_dirty = true;
|
if (m_initialized)
|
||||||
|
m_dirty = true;
|
||||||
|
else
|
||||||
|
// Call render directly, so it gets initialized immediately, not from On Idle handler.
|
||||||
|
this->render();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLCanvas3D::on_key_down(wxKeyEvent& evt)
|
void GLCanvas3D::on_key_down(wxKeyEvent& evt)
|
||||||
|
|||||||
Reference in New Issue
Block a user