mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 22:47:32 -06:00
Fix non-rectangular bed rendering offset issue
This commit is contained in:
parent
228b50f858
commit
bbf17e919e
1 changed files with 4 additions and 2 deletions
|
@ -648,8 +648,10 @@ void Bed3D::update_bed_triangles()
|
|||
(*model_offset_ptr)(1) = m_build_volume.bounding_volume2d().min.y() - bed_ext.min.y();
|
||||
(*model_offset_ptr)(2) = -0.41 + GROUND_Z;
|
||||
|
||||
// ORCA fix for circular bed (without 3D model) beds rendered with shifted position
|
||||
Vec2d point_shift = m_build_volume.type() == BuildVolume_Type::Circle ? Vec2d(0,0) : m_bed_shape[0];
|
||||
// ORCA fix for non-rectangular bed (without 3D model) beds rendered with shifted position
|
||||
// TODO: FIXME: Is this ever needed?
|
||||
//Vec2d point_shift = m_build_volume.type() == BuildVolume_Type::Circle ? Vec2d(0,0) : m_bed_shape[0];
|
||||
Vec2d point_shift(0, 0);
|
||||
std::vector<Vec2d> origin_bed_shape;
|
||||
for (size_t i = 0; i < m_bed_shape.size(); i++) {
|
||||
origin_bed_shape.push_back(m_bed_shape[i] - point_shift);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue