mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Place on bed fix (incorrect usage of sla z-shift)
This commit is contained in:
		
							parent
							
								
									3aa97a6f3f
								
							
						
					
					
						commit
						b0d78c3fb2
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1445,8 +1445,8 @@ void GLGizmoFlatten::on_render(const GLCanvas3D::Selection& selection) const | |||
|     { | ||||
|         const Transform3d& m = selection.get_volume(*selection.get_volume_idxs().begin())->get_instance_transformation().get_matrix(); | ||||
|         ::glPushMatrix(); | ||||
|         ::glMultMatrixd(m.data()); | ||||
|         ::glTranslatef(0.f, 0.f, selection.get_volume(*selection.get_volume_idxs().begin())->get_sla_shift_z()); | ||||
|         ::glMultMatrixd(m.data()); | ||||
|         if (this->is_plane_update_necessary()) | ||||
| 			const_cast<GLGizmoFlatten*>(this)->update_planes(); | ||||
|         for (int i = 0; i < (int)m_planes.size(); ++i) | ||||
|  | @ -1479,8 +1479,8 @@ void GLGizmoFlatten::on_render_for_picking(const GLCanvas3D::Selection& selectio | |||
|     { | ||||
|         const Transform3d& m = selection.get_volume(*selection.get_volume_idxs().begin())->get_instance_transformation().get_matrix(); | ||||
|         ::glPushMatrix(); | ||||
|         ::glMultMatrixd(m.data()); | ||||
|         ::glTranslatef(0.f, 0.f, selection.get_volume(*selection.get_volume_idxs().begin())->get_sla_shift_z()); | ||||
|         ::glMultMatrixd(m.data()); | ||||
|         if (this->is_plane_update_necessary()) | ||||
| 			const_cast<GLGizmoFlatten*>(this)->update_planes(); | ||||
|         for (int i = 0; i < (int)m_planes.size(); ++i) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Matena
						Lukas Matena