Ported more things to XS

This commit is contained in:
Alessandro Ranellucci 2014-09-21 10:51:36 +02:00
parent 5a96bad8c2
commit 73b3c06361
18 changed files with 383 additions and 297 deletions

View file

@ -497,6 +497,7 @@ sub objects_loaded {
}
$self->arrange unless $params{no_arrange};
$self->update;
use XXX; YYY $self->{model}->objects->[0]->instances->[0]->offset->pp;
$self->{list}->Update;
$self->{list}->Select($obj_idxs->[-1], 1);
$self->object_list_changed;
@ -695,7 +696,7 @@ sub changescale {
my $versor = [1,1,1];
$versor->[$axis] = $scale/100;
$model_object->scale_xyz($versor);
$model_object->scale_xyz(Slic3r::Pointf3->new(@$versor));
$self->make_thumbnail($obj_idx);
} else {
# max scale factor should be above 2540 to allow importing files exported in inches