mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 17:33:37 -05:00
Fix pipe-separated exclusion areas
Treat pipe-separated bed_exclude_area strings as extended exclusion syntax even when no Z range is present. ConfigOptionPoints now preserves and parses plain multi-region strings like XxY,...|XxY,... instead of flattening them into a single polygon. Remove the stale bed_exclude_area_3d config option and related preset/UI plumbing now that Z-limited and multi-region exclusions are represented through the existing bed_exclude_area field.
This commit is contained in:
1 parent
19a454746a
commit
ee593c2d5a
9 files changed
+15
-33
No files matched your search
@@ -240,8 +240,6 @@ void change_opt_value(DynamicPrintConfig& config, const t_config_option_key& opt
|
||||
case coPoints:{
|
||||
if (opt_key == "bed_exclude_area" && boost::any_cast<std::string>(&value) != nullptr) {
|
||||
config.option<ConfigOptionPoints>(opt_key)->deserialize(boost::any_cast<std::string>(value));
|
||||
if (config.has("bed_exclude_area_3d"))
|
||||
config.set_key_value("bed_exclude_area_3d", new ConfigOptionString());
|
||||
break;
|
||||
}
|
||||
if (opt_key == "printable_area" || opt_key == "bed_exclude_area" || opt_key == "thumbnails" || opt_key == "wrapping_exclude_area" ) {
|
||||
@@ -249,8 +247,6 @@ void change_opt_value(DynamicPrintConfig& config, const t_config_option_key& opt
|
||||
if (opt_key == "bed_exclude_area") {
|
||||
ConfigOptionPoints normalized(boost::any_cast<std::vector<Vec2d>>(value));
|
||||
config.option<ConfigOptionPoints>(opt_key)->deserialize(normalized.serialize());
|
||||
if (config.has("bed_exclude_area_3d"))
|
||||
config.set_key_value("bed_exclude_area_3d", new ConfigOptionString());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user