Bugfix: most of the File menu items didn't work with --no-plater. #1112

This commit is contained in:
Alessandro Ranellucci 2013-05-13 18:22:47 +02:00
parent d2425748a3
commit f6dc712158

View File

@ -331,7 +331,7 @@ sub config {
# retrieve filament presets and build a single config object for them
my $filament_config;
if ($self->{plater}->filament_presets == 1 || $self->{mode} eq 'simple') {
if (!$self->{plater} || $self->{plater}->filament_presets == 1 || $self->{mode} eq 'simple') {
$filament_config = $self->{options_tabs}{filament}->config;
} else {
# TODO: handle dirty presets.