mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 01:15:53 +08:00
Fix broken forward-compatibility for arrange settings with <=2.6.1
This commit is contained in:
parent
5b7fdd0d6d
commit
dc37d04e82
@ -42,7 +42,10 @@ public:
|
|||||||
static constexpr std::string_view get_label(GeometryHandling v)
|
static constexpr std::string_view get_label(GeometryHandling v)
|
||||||
{
|
{
|
||||||
constexpr auto STR = std::array{
|
constexpr auto STR = std::array{
|
||||||
"convex"sv, "balanced"sv, "advanced"sv, "undefined"sv
|
"0"sv, // convex
|
||||||
|
"1"sv, // balanced
|
||||||
|
"2"sv, // advanced
|
||||||
|
"-1"sv, // undefined
|
||||||
};
|
};
|
||||||
|
|
||||||
return STR[v];
|
return STR[v];
|
||||||
@ -51,7 +54,9 @@ public:
|
|||||||
static constexpr std::string_view get_label(ArrangeStrategy v)
|
static constexpr std::string_view get_label(ArrangeStrategy v)
|
||||||
{
|
{
|
||||||
constexpr auto STR = std::array{
|
constexpr auto STR = std::array{
|
||||||
"auto"sv, "pulltocenter"sv, "undefined"sv
|
"0"sv, // auto
|
||||||
|
"1"sv, // pulltocenter
|
||||||
|
"-1"sv, // undefined
|
||||||
};
|
};
|
||||||
|
|
||||||
return STR[v];
|
return STR[v];
|
||||||
@ -59,13 +64,15 @@ public:
|
|||||||
|
|
||||||
static constexpr std::string_view get_label(XLPivots v)
|
static constexpr std::string_view get_label(XLPivots v)
|
||||||
{
|
{
|
||||||
constexpr auto STR = std::array{"center"sv,
|
constexpr auto STR = std::array{
|
||||||
"rearleft"sv,
|
"0"sv, // center
|
||||||
"frontleft"sv,
|
"1"sv, // rearleft
|
||||||
"frontright"sv,
|
"2"sv, // frontleft
|
||||||
"rearright"sv,
|
"3"sv, // frontright
|
||||||
"random"sv,
|
"4"sv, // rearright
|
||||||
"undefined"sv};
|
"5"sv, // random
|
||||||
|
"-1"sv, // undefined
|
||||||
|
};
|
||||||
|
|
||||||
return STR[v];
|
return STR[v];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user