Copy to Points node: add scale/rotation randomization parameters (#1592)

* WIP, transforms broken with rot/scale

* Transform around bounding box centre

* Add units and tooltips

---------

Co-authored-by: 0hypercube <0hypercube@gmail.com>
This commit is contained in:
Keavon Chambers
2024-02-01 12:20:35 -08:00
committed by GitHub
parent 51d6d4d30e
commit 8fa46ba63a
6 changed files with 60 additions and 13 deletions

View File

@@ -244,7 +244,7 @@ pub(crate) async fn transform_vector_data<Fut: Future>(
where
Fut::Output: TransformMut,
{
// TOOD: This is hack and might break for Vector data because the pivot may be incorrect
// TODO: This is hack and might break for Vector data because the pivot may be incorrect
let transform = DAffine2::from_scale_angle_translation(scale, rotate as f64, translate) * DAffine2::from_cols_array(&[1., shear.y, shear.x, 1., 0., 0.]);
if !footprint.ignore_modifications {
let pivot_transform = DAffine2::from_translation(pivot);