Refactoring: better API for Print/Object steps with explicit dependencies

This commit is contained in:
Alessandro Ranellucci 2014-06-13 20:05:18 +02:00
parent d896ad090b
commit 4d76d05bbb
4 changed files with 182 additions and 160 deletions

View file

@ -565,8 +565,9 @@ sub rotate {
$_->set_rotation($new_angle) for @{ $model_object->instances };
$model_object->update_bounding_box;
# update print
# update print and start background processing
$self->{print}->add_model_object($model_object, $obj_idx);
$self->start_background_process;
$object->transform_thumbnail($self->{model}, $obj_idx);
}
@ -600,8 +601,9 @@ sub changescale {
$_->set_scaling_factor($scale) for @{ $model_object->instances };
$model_object->update_bounding_box;
# update print
# update print and start background processing
$self->{print}->add_model_object($model_object, $obj_idx);
$self->start_background_process;
$object->transform_thumbnail($self->{model}, $obj_idx);
}