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:
bubnikv 2017-09-14 09:06:14 +02:00
parent 777dc8c48b
commit 630b746cab

View file

@ -1983,7 +1983,8 @@ sub selection_changed {
if ($self->{object_info_size}) { # have we already loaded the info pane?
if ($have_sel) {
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];
$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);