mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 06:15:57 +08:00
Fixed the objects jumping
This commit is contained in:
parent
046d5a9cb7
commit
c33ed9144c
@ -1158,18 +1158,7 @@ sub split_object {
|
|||||||
$self->resume_background_process;
|
$self->resume_background_process;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach my $object (@model_objects) {
|
|
||||||
$object->instances->[$_]->offset->translate($_ * 10, $_ * 10)
|
|
||||||
for 1..$#{ $object->instances };
|
|
||||||
|
|
||||||
# we need to center this single object around origin
|
|
||||||
$object->center_around_origin;
|
|
||||||
}
|
|
||||||
|
|
||||||
# remove the original object before spawning the object_loaded event, otherwise
|
|
||||||
# we'll pass the wrong $obj_idx to it (which won't be recognized after the
|
|
||||||
# thumbnail thread returns)
|
|
||||||
$self->remove($obj_idx);
|
$self->remove($obj_idx);
|
||||||
$current_object = $obj_idx = undef;
|
$current_object = $obj_idx = undef;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user