Skip to content

Commit

Permalink
Fixed a bug that caused bed textures to scale improperly
Browse files Browse the repository at this point in the history
Fixes #1175
  • Loading branch information
SoftFever committed Feb 24, 2024
1 parent 2c279c5 commit d3309b9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/slic3r/GUI/PartPlate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2356,13 +2356,18 @@ void PartPlate::generate_logo_polygon(ExPolygon &logo_polygon)
{
if (m_shape.size() == 4)
{
//rectangle case
auto preset_bundle = wxGetApp().preset_bundle;

bool is_bbl_vendor = false;
if (preset_bundle)
is_bbl_vendor = preset_bundle->is_bbl_vendor();
//rectangle case
for (int i = 0; i < 4; i++)
{
const Vec2d& p = m_shape[i];
if ((i == 0) || (i == 1)) {
logo_polygon.contour.append({ scale_(p(0)), scale_(p(1) - 12.f) });
}
logo_polygon.contour.append({scale_(p(0)), scale_(is_bbl_vendor ? p(1) - 12.f : p(1))});
}
else {
logo_polygon.contour.append({ scale_(p(0)), scale_(p(1)) });
}
Expand Down

0 comments on commit d3309b9

Please sign in to comment.