Only expand shortcut options in StaticConfig objects. This way we can keep a default extruder value in the parts panel

This commit is contained in:
Alessandro Ranellucci 2014-03-22 20:12:54 +01:00
parent 61db9530d9
commit 21e6de0e59
7 changed files with 116 additions and 26 deletions

View file

@ -392,7 +392,7 @@ sub config {
$filament_config = $config;
next;
}
foreach my $opt_key (keys %$config) {
foreach my $opt_key (@{$config->get_keys}) {
next unless ref $filament_config->get($opt_key) eq 'ARRAY';
push @{ $filament_config->get($opt_key) }, $config->get($opt_key)->[0];
}