mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06: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:
		
							parent
							
								
									7dbda0243e
								
							
						
					
					
						commit
						991632add5
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -5657,7 +5657,11 @@ void GLCanvas3D::on_mouse(wxMouseEvent& 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) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv