Skip to content

Commit

Permalink
Disabled live preview by default as it is not stable and/or the calcu…
Browse files Browse the repository at this point in the history
…lation takes too long for interactive usage.
  • Loading branch information
bubnikv committed Nov 13, 2016
1 parent 9abe078 commit 7f1704b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Slic3r/GUI/Plater/ObjectCutDialog.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ sub new {
keep_upper => 1,
keep_lower => 1,
rotate_lower => 1,
preview => 1,
# preview => 1,
# Disabled live preview by default as it is not stable and/or the calculation takes too long for interactive usage.
preview => 0,
};

my $optgroup;
Expand Down Expand Up @@ -258,7 +260,8 @@ sub _update {
$optgroup->get_field('keep_upper')->toggle(my $have_upper = abs($z - $optgroup->get_option('z')->max) > 0.1);
$optgroup->get_field('keep_lower')->toggle(my $have_lower = $z > 0.1);
$optgroup->get_field('rotate_lower')->toggle($z > 0 && $self->{cut_options}{keep_lower});
$optgroup->get_field('preview')->toggle($self->{cut_options}{keep_upper} != $self->{cut_options}{keep_lower});
# Disabled live preview by default as it is not stable and/or the calculation takes too long for interactive usage.
# $optgroup->get_field('preview')->toggle($self->{cut_options}{keep_upper} != $self->{cut_options}{keep_lower});

# update cut button
if (($self->{cut_options}{keep_upper} && $have_upper)
Expand Down

0 comments on commit 7f1704b

Please sign in to comment.