mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
parent
2c279c5648
commit
d3309b978f
1 changed files with 8 additions and 3 deletions
|
@ -2356,12 +2356,17 @@ void PartPlate::generate_logo_polygon(ExPolygon &logo_polygon)
|
||||||
{
|
{
|
||||||
if (m_shape.size() == 4)
|
if (m_shape.size() == 4)
|
||||||
{
|
{
|
||||||
|
auto preset_bundle = wxGetApp().preset_bundle;
|
||||||
|
|
||||||
|
bool is_bbl_vendor = false;
|
||||||
|
if (preset_bundle)
|
||||||
|
is_bbl_vendor = preset_bundle->is_bbl_vendor();
|
||||||
//rectangle case
|
//rectangle case
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
const Vec2d& p = m_shape[i];
|
const Vec2d& p = m_shape[i];
|
||||||
if ((i == 0) || (i == 1)) {
|
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 {
|
else {
|
||||||
logo_polygon.contour.append({ scale_(p(0)), scale_(p(1)) });
|
logo_polygon.contour.append({ scale_(p(0)), scale_(p(1)) });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue