Fixed the objects jumping

This commit is contained in:
bubnikv 2017-06-19 11:47:43 +02:00
parent 046d5a9cb7
commit c33ed9144c

View File

@ -1159,17 +1159,6 @@ sub split_object {
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;