diff --git a/lib/Slic3r/Test.pm b/lib/Slic3r/Test.pm index c0137f9e4..b767ca593 100644 --- a/lib/Slic3r/Test.pm +++ b/lib/Slic3r/Test.pm @@ -158,8 +158,12 @@ sub model { $object->add_volume(mesh => $mesh, material_id => $model_name); $object->add_instance( offset => Slic3r::Pointf->new(0,0), - rotation => $params{rotation} // 0, - scaling_factor => $params{scale} // 1, + # 3D full transform + rotation => Slic3r::Pointf3->new(0, 0, $params{rotation} // 0), + scaling_factor => Slic3r::Pointf3->new($params{scale} // 1, $params{scale} // 1, $params{scale} // 1), + # old transform +# rotation => $params{rotation} // 0, +# scaling_factor => $params{scale} // 1, ); return $model; }