Fixed a newly introduced bug in the multi material UI dialog.
This commit is contained in:
parent
817d827f7a
commit
c2ddf537c6
@ -78,9 +78,8 @@ sub new {
|
|||||||
|
|
||||||
$canvas->on_select(sub {
|
$canvas->on_select(sub {
|
||||||
my ($volume_idx) = @_;
|
my ($volume_idx) = @_;
|
||||||
|
|
||||||
# convert scene volume to model object volume
|
# 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]);
|
$canvas->load_object($self->{model_object}, undef, undef, [0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user