Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoseph Lenox <lordofhyphens@gmail.com>2016-12-06 09:57:16 +0300
committerbubnikv <bubnikv@gmail.com>2017-02-21 18:30:13 +0300
commit873161ea7cf06db27f4a8fe07355b89b40b6bf7a (patch)
tree263ebd8aada83774f160271f3e83d7d3cd73f15e /lib
parente2b56c44622748637d37eb9bf27344ed3b334603 (diff)
Only enable movers if modifier mesh.
Diffstat (limited to 'lib')
-rw-r--r--lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm b/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm
index 477fb8573..aab6f5c98 100644
--- a/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm
+++ b/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm
@@ -268,10 +268,15 @@ sub selection_changed {
$self->{canvas}->volumes->[ $itemData->{volume_id} ]{selected} = 1;
}
$self->{btn_delete}->Enable;
- $self->{optgroup_movers}->enable;
# attach volume config to settings panel
my $volume = $self->{model_object}->volumes->[ $itemData->{volume_id} ];
+
+ if ($volume->modifier) {
+ $self->{optgroup_movers}->enable;
+ } else {
+ $self->{optgroup_movers}->disable;
+ }
$config = $volume->config;
$self->{staticbox}->SetLabel('Part Settings');