mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
Only enable movers if modifier mesh.
This commit is contained in:
parent
e2b56c4462
commit
873161ea7c
1 changed files with 6 additions and 1 deletions
|
@ -268,10 +268,15 @@ sub selection_changed {
|
||||||
$self->{canvas}->volumes->[ $itemData->{volume_id} ]{selected} = 1;
|
$self->{canvas}->volumes->[ $itemData->{volume_id} ]{selected} = 1;
|
||||||
}
|
}
|
||||||
$self->{btn_delete}->Enable;
|
$self->{btn_delete}->Enable;
|
||||||
$self->{optgroup_movers}->enable;
|
|
||||||
|
|
||||||
# attach volume config to settings panel
|
# attach volume config to settings panel
|
||||||
my $volume = $self->{model_object}->volumes->[ $itemData->{volume_id} ];
|
my $volume = $self->{model_object}->volumes->[ $itemData->{volume_id} ];
|
||||||
|
|
||||||
|
if ($volume->modifier) {
|
||||||
|
$self->{optgroup_movers}->enable;
|
||||||
|
} else {
|
||||||
|
$self->{optgroup_movers}->disable;
|
||||||
|
}
|
||||||
$config = $volume->config;
|
$config = $volume->config;
|
||||||
$self->{staticbox}->SetLabel('Part Settings');
|
$self->{staticbox}->SetLabel('Part Settings');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue