mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	One more fix of ENABLE_IMGUI
This commit is contained in:
		
							parent
							
								
									2585e3103d
								
							
						
					
					
						commit
						d0b6beaaaa
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		|  | @ -166,7 +166,9 @@ GLGizmoBase::GLGizmoBase(GLCanvas3D& parent) | |||
| #endif // ENABLE_GIZMOS_SHORTCUT
 | ||||
|     , m_hover_id(-1) | ||||
|     , m_dragging(false) | ||||
| #if ENABLE_IMGUI | ||||
|     , m_imgui(wxGetApp().imgui()) | ||||
| #endif // ENABLE_IMGUI
 | ||||
| { | ||||
|     ::memcpy((void*)m_base_color, (const void*)DEFAULT_BASE_COLOR, 3 * sizeof(float)); | ||||
|     ::memcpy((void*)m_drag_color, (const void*)DEFAULT_DRAG_COLOR, 3 * sizeof(float)); | ||||
|  |  | |||
|  | @ -25,7 +25,9 @@ class ModelObject; | |||
| namespace GUI { | ||||
| 
 | ||||
| class GLCanvas3D; | ||||
| #if ENABLE_IMGUI | ||||
| class ImGuiWrapper; | ||||
| #endif // ENABLE_IMGUI
 | ||||
| 
 | ||||
| class GLGizmoBase | ||||
| { | ||||
|  | @ -91,7 +93,9 @@ protected: | |||
|     float m_drag_color[3]; | ||||
|     float m_highlight_color[3]; | ||||
|     mutable std::vector<Grabber> m_grabbers; | ||||
| #if ENABLE_IMGUI | ||||
|     ImGuiWrapper* m_imgui; | ||||
| #endif // ENABLE_IMGUI
 | ||||
| 
 | ||||
| public: | ||||
|     explicit GLGizmoBase(GLCanvas3D& parent); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vojtech Kral
						Vojtech Kral