Skip to content

Commit

Permalink
Bugfix: changing range-based layer heigths didn't trigger background …
Browse files Browse the repository at this point in the history
…processing. #2958
  • Loading branch information
alranel committed Jul 4, 2015
1 parent 440af2c commit e84ead5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,17 @@ sub new {
$grid->SetCellValue($event->GetRow, $event->GetCol, $value);

# if there's no empty row, let's append one
for my $i (0 .. $grid->GetNumberRows-1) {
for my $i (0 .. $grid->GetNumberRows) {
if ($i == $grid->GetNumberRows) {
# if we're here then we found no empty row
$grid->AppendRows(1);
last;
}
if (!grep $grid->GetCellValue($i, $_), 0..2) {
return;
# exit loop if this row is empty
last;
}
}
$grid->AppendRows(1);

$self->{layers_changed} = 1;
});
Expand Down

0 comments on commit e84ead5

Please sign in to comment.