mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Prevent warnings when zooming on uninitialized 3D canvas
This commit is contained in:
		
							parent
							
								
									53f2d6bb4b
								
							
						
					
					
						commit
						9f7734abeb
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -379,6 +379,7 @@ sub mouse_to_3d { | |||
| sub ZoomTo { | ||||
|     my ($self, $factor, $tox, $toy) =  @_; | ||||
|      | ||||
|     return if !$self->init; | ||||
|     glTranslatef($tox, $toy, 0); | ||||
|     glMatrixMode(GL_MODELVIEW); | ||||
|     $self->Zoom($factor); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci