mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	Fixed rotation of single volumes using rotate gizmo
This commit is contained in:
		
							parent
							
								
									366e8422a7
								
							
						
					
					
						commit
						4b55db878a
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -1609,7 +1609,7 @@ void GLCanvas3D::Selection::rotate(const Vec3d& rotation, bool local) | |||
|         else if (is_single_volume() || is_single_modifier()) | ||||
| #if ENABLE_WORLD_ROTATIONS | ||||
|         { | ||||
|             if (requires_local_axes()) | ||||
|             if (local) | ||||
|                 (*m_volumes)[i]->set_volume_rotation(rotation); | ||||
|             else | ||||
|             { | ||||
|  |  | |||
|  | @ -497,7 +497,11 @@ void ObjectManipulation::change_rotation_value(const Vec3d& rotation) | |||
|     } | ||||
| 
 | ||||
|     canvas->get_selection().start_dragging(); | ||||
| #if ENABLE_IMPROVED_SIDEBAR_OBJECTS_MANIPULATION | ||||
|     canvas->get_selection().rotate(rad_rotation, selection.is_single_full_instance() || selection.requires_local_axes()); | ||||
| #else | ||||
|     canvas->get_selection().rotate(rad_rotation, selection.is_single_full_instance()); | ||||
| #endif // ENABLE_IMPROVED_SIDEBAR_OBJECTS_MANIPULATION
 | ||||
|     canvas->do_rotate(); | ||||
| 
 | ||||
| #if ENABLE_IMPROVED_SIDEBAR_OBJECTS_MANIPULATION | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri