From c2ddf537c68c2e06f4f2afae98ef29ebfcbe0efc Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 31 Jan 2017 11:38:07 +0100 Subject: [PATCH] Fixed a newly introduced bug in the multi material UI dialog. --- lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm b/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm index 51a58366c..5c5ad9f2d 100644 --- a/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm +++ b/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm @@ -78,9 +78,8 @@ sub new { $canvas->on_select(sub { my ($volume_idx) = @_; - # convert scene volume to model object volume - $self->reload_tree($canvas->volume_idx($volume_idx)); + $self->reload_tree(($volume_idx == -1) ? undef : $canvas->volumes->[$volume_idx]->volume_idx); }); $canvas->load_object($self->{model_object}, undef, undef, [0]);