mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-29 19:53:44 -06:00 
			
		
		
		
	Fixed build when ENABLE_CANVAS_TOOLTIP_USING_IMGUI is disabled
This commit is contained in:
		
							parent
							
								
									c300b66b7e
								
							
						
					
					
						commit
						df8def7545
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -3312,11 +3312,13 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt) | |||
|     if (m_tooltip.is_in_imgui() && evt.LeftUp()) | ||||
|         // ignore left up events coming from imgui windows and not processed by them
 | ||||
|         m_mouse.ignore_left_up = true; | ||||
| #endif // ENABLE_CANVAS_TOOLTIP_USING_IMGUI
 | ||||
|     m_tooltip.set_in_imgui(false); | ||||
| #endif // ENABLE_CANVAS_TOOLTIP_USING_IMGUI
 | ||||
|     if (imgui->update_mouse_data(evt)) { | ||||
|         m_mouse.position = evt.Leaving() ? Vec2d(-1.0, -1.0) : pos.cast<double>(); | ||||
| #if ENABLE_CANVAS_TOOLTIP_USING_IMGUI | ||||
|         m_tooltip.set_in_imgui(true); | ||||
| #endif // ENABLE_CANVAS_TOOLTIP_USING_IMGUI
 | ||||
|         render(); | ||||
| #ifdef SLIC3R_DEBUG_MOUSE_EVENTS | ||||
|         printf((format_mouse_event_debug_message(evt) + " - Consumed by ImGUI\n").c_str()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 enricoturri1966
						enricoturri1966