mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-16 14:22:43 -07: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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user