mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-04 18:58:00 -05:00
Add multi-nozzle exclusion volume modes
This commit is contained in:
1 parent
e21bd886eb
commit
dbae415127
17 files changed
+578
-40
No files matched your search
@@ -15,6 +15,7 @@
|
||||
#include <regex>
|
||||
#include <utility>
|
||||
#include <cstdint>
|
||||
#include <limits>
|
||||
#include <wx/numformatter.h>
|
||||
#include <wx/tooltip.h>
|
||||
#include <wx/notebook.h>
|
||||
@@ -683,6 +684,14 @@ void Field::get_value_by_opt_type(wxString& str, const bool check_value/* = true
|
||||
m_value = into_u8(str);
|
||||
}
|
||||
break;
|
||||
} else if (m_opt.opt_key == "extruder_bed_exclude_area") {
|
||||
const std::string definition = into_u8(str);
|
||||
if (!is_valid_bed_exclude_area_string(definition, std::numeric_limits<double>::max())) {
|
||||
show_error(m_parent, _L("Invalid exclusion volume format. Use XxY, XxY, ... or ZMIN..ZMAX;XxY, XxY, ... and separate multiple volumes with |."));
|
||||
const std::string old_value = m_value.empty() ? std::string{} : boost::any_cast<std::string>(m_value);
|
||||
set_value(from_u8(old_value), true);
|
||||
break;
|
||||
}
|
||||
} else if (m_opt.opt_key == "extra_solid_infills") {
|
||||
string ustr(str.utf8_string());
|
||||
// New rule: accept either interval form (N or N#K) or explicit list (e.g. 1,7,9), with optional quotes.
|
||||
|
||||
Reference in new issue
Block a user