Skip to content

Commit

Permalink
Update adjustPathTarget and remapPathTarget.
Browse files Browse the repository at this point in the history
  • Loading branch information
seagetch committed Sep 12, 2023
1 parent 065c5f4 commit 8ed718a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ public:

override
void remapPathTarget(ref CatmullSpline p, mat4 trans) {
p.remapTarget(mesh, trans); //mat4.identity);
p.remapTarget(mesh, trans, vertices); //mat4.identity);
}

override
Expand Down Expand Up @@ -779,12 +779,10 @@ public:
auto drawable = cast(Drawable)target;

mat4 trans = (target? drawable.getDynamicMatrix(): transform).inverse * transform;
deformation = drawable.deformation.dup;
ref CatmullSpline doAdjust(ref CatmullSpline p) {
// for (int i; i < p.points.length; i++) {
// p.points[i].position = (trans * vec4(p.points[i].position, 0, 1)).xy;
// }
p.update();
// remapPathTarget(p, mat4.identity);

remapPathTarget(p, trans);
return p;
}
Expand Down

0 comments on commit 8ed718a

Please sign in to comment.