mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Constrained gizmo-scaling -> fixed offset for uniform scale
This commit is contained in:
		
							parent
							
								
									3432218e8b
								
							
						
					
					
						commit
						38e8f345f5
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -361,7 +361,10 @@ void GLGizmoScale3D::do_scale_uniform(const UpdateData& data)
 | 
			
		|||
{
 | 
			
		||||
    double ratio = calc_ratio(data);
 | 
			
		||||
    if (ratio > 0.0)
 | 
			
		||||
    {
 | 
			
		||||
        m_scale = m_starting.scale * ratio;
 | 
			
		||||
        m_offset = Vec3d::Zero();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
double GLGizmoScale3D::calc_ratio(const UpdateData& data) const
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue