mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Workaround for upstream module bug causing command line option parsing for multi-boolean options like retract-layer-change and wipe
This commit is contained in:
parent
5d10ef514f
commit
7041ebdd22
5 changed files with 26 additions and 8 deletions
|
@ -237,6 +237,17 @@ ConfigBase::set(t_config_option_key opt_key, SV* value) {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/* This method is implemented as a workaround for this typemap bug:
|
||||
https://rt.cpan.org/Public/Bug/Display.html?id=94110 */
|
||||
bool
|
||||
ConfigBase::set_deserialize(const t_config_option_key opt_key, SV* str) {
|
||||
size_t len;
|
||||
const char * c = SvPV(str, len);
|
||||
std::string value(c, len);
|
||||
|
||||
return this->set_deserialize(opt_key, value);
|
||||
}
|
||||
#endif
|
||||
|
||||
DynamicConfig::~DynamicConfig () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue