mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-01 21:21:10 -06:00
Large refactoring of the Config classes
This commit is contained in:
parent
32a333f16a
commit
3fac8cd77e
8 changed files with 467 additions and 336 deletions
|
|
@ -30,6 +30,7 @@ foreach my $config (Slic3r::Config->new, Slic3r::Config::Full->new) {
|
|||
is $config->serialize('first_layer_height'), '0.3', 'serialize absolute floatOrPercent';
|
||||
|
||||
$config->set('first_layer_height', '50%');
|
||||
$config->get_abs_value('first_layer_height');
|
||||
ok abs($config->get_abs_value('first_layer_height') - 0.15) < 1e-4, 'set/get relative floatOrPercent';
|
||||
is $config->serialize('first_layer_height'), '50%', 'serialize relative floatOrPercent';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue