Skip to content

Commit

Permalink
fix bed mesh for multi plate
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Apr 16, 2023
1 parent 656101d commit e74d366
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/slic3r/GUI/3DBed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,9 @@ GeometryBuffer Bed3D::update_bed_triangles() const
BoundingBoxf3 build_volume;

if (!m_build_volume.valid()) return new_triangles;

(*model_offset_ptr)(0) = 0;//m_build_volume.bounding_volume2d().min.x();
(*model_offset_ptr)(1) = 0; // m_build_volume.bounding_volume2d().min.y();
auto bed_ext = get_extents(m_bed_shape);
(*model_offset_ptr)(0) = m_build_volume.bounding_volume2d().min.x() - bed_ext.min.x();
(*model_offset_ptr)(1) = m_build_volume.bounding_volume2d().min.y() - bed_ext.min.y();
(*model_offset_ptr)(2) = -0.41 + GROUND_Z;

std::vector<Vec2d> new_bed_shape;
Expand Down

0 comments on commit e74d366

Please sign in to comment.