mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Rotate gizmo -> Grabbers showing tooltip also on hover for single instance selection.
This commit is contained in:
		
							parent
							
								
									c74599975e
								
							
						
					
					
						commit
						77d6ebc126
					
				
					 1 changed files with 13 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -445,10 +445,22 @@ void GLGizmoRotate::on_render(const BoundingBoxf3& box) const
 | 
			
		|||
 | 
			
		||||
#if ENABLE_EXTENDED_SELECTION
 | 
			
		||||
    const BoundingBoxf3& box = selection.get_bounding_box();
 | 
			
		||||
#endif // ENABLE_EXTENDED_SELECTION
 | 
			
		||||
    bool single_instance = selection.is_single_full_instance();
 | 
			
		||||
 | 
			
		||||
    std::string axis;
 | 
			
		||||
    switch (m_axis)
 | 
			
		||||
    {
 | 
			
		||||
    case X: { axis = "X: "; break; }
 | 
			
		||||
    case Y: { axis = "Y: "; break; }
 | 
			
		||||
    case Z: { axis = "Z: "; break; }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if ((single_instance && (m_hover_id == 0)) || m_dragging)
 | 
			
		||||
        set_tooltip(axis + format((float)Geometry::rad2deg(m_angle), 4) + "°");
 | 
			
		||||
#else
 | 
			
		||||
    if (m_dragging)
 | 
			
		||||
        set_tooltip(format(m_angle * 180.0f / (float)PI, 4));
 | 
			
		||||
#endif // ENABLE_EXTENDED_SELECTION
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        m_center = box.center();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue