mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Do not translate selection if user press Shift while selecting and then drags
This commit is contained in:
		
							parent
							
								
									30a130e014
								
							
						
					
					
						commit
						30fe846158
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -4115,7 +4115,12 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt) | |||
|         // Get new position at the same Z of the initial click point.
 | ||||
|         float z0 = 0.0f; | ||||
|         float z1 = 1.0f; | ||||
| #if ENABLE_EXTENDED_SELECTION | ||||
|         // we do not want to translate objects if the user just clicked on an object while pressing shift (to add/remove it from the selection) and then drag
 | ||||
|         Vec3d cur_pos = evt.ShiftDown() ? m_mouse.drag.start_position_3D : Linef3(_mouse_to_3d(pos, &z0), _mouse_to_3d(pos, &z1)).intersect_plane(m_mouse.drag.start_position_3D(2)); | ||||
| #else | ||||
|         Vec3d cur_pos = Linef3(_mouse_to_3d(pos, &z0), _mouse_to_3d(pos, &z1)).intersect_plane(m_mouse.drag.start_position_3D(2)); | ||||
| #endif // ENABLE_EXTENDED_SELECTION
 | ||||
| 
 | ||||
| #if !ENABLE_EXTENDED_SELECTION | ||||
|         // Clip the new position, so the object center remains close to the bed.
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri