mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 06:33:57 -06:00
Fix a lag when starting to move a platter object.
The fix is done by disabling the print out of a model statistics, which runs the model fixing twice.
This commit is contained in:
parent
777dc8c48b
commit
630b746cab
1 changed files with 2 additions and 1 deletions
|
@ -1983,7 +1983,8 @@ sub selection_changed {
|
||||||
if ($self->{object_info_size}) { # have we already loaded the info pane?
|
if ($self->{object_info_size}) { # have we already loaded the info pane?
|
||||||
if ($have_sel) {
|
if ($have_sel) {
|
||||||
my $model_object = $self->{model}->objects->[$obj_idx];
|
my $model_object = $self->{model}->objects->[$obj_idx];
|
||||||
$model_object->print_info;
|
#FIXME print_info runs model fixing in two rounds, it is very slow, it should not be performed here!
|
||||||
|
# $model_object->print_info;
|
||||||
my $model_instance = $model_object->instances->[0];
|
my $model_instance = $model_object->instances->[0];
|
||||||
$self->{object_info_size}->SetLabel(sprintf("%.2f x %.2f x %.2f", @{$model_object->instance_bounding_box(0)->size}));
|
$self->{object_info_size}->SetLabel(sprintf("%.2f x %.2f x %.2f", @{$model_object->instance_bounding_box(0)->size}));
|
||||||
$self->{object_info_materials}->SetLabel($model_object->materials_count);
|
$self->{object_info_materials}->SetLabel($model_object->materials_count);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue