Skip to content

Commit

Permalink
Follow-up of 6b04142 - Fixed uvmapping of printbed texture
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoturri1966 committed Feb 10, 2022
1 parent fa1ff1c commit a28dea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slic3r/GUI/3DBed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ void Bed3D::init_triangles()
unsigned int vertices_counter = 0;
for (const Vec2f& v : triangles) {
const Vec3f p = { v.x(), v.y(), GROUND_Z };
init_data.add_vertex(p, (Vec2f)v.cwiseProduct(inv_size).eval());
init_data.add_vertex(p, (Vec2f)(v - min).cwiseProduct(inv_size).eval());
++vertices_counter;
if (vertices_counter % 3 == 0) {
if (init_data.format.index_type == GLModel::Geometry::EIndexType::USHORT)
Expand Down

0 comments on commit a28dea0

Please sign in to comment.