Skip to content

Commit

Permalink
Merge pull request #1431 from boucaud/fix-paintfilter
Browse files Browse the repository at this point in the history
fix(PaintFilter): fix polygon paint filter painting the wrong slice
  • Loading branch information
finetjul committed May 7, 2020
2 parents ea358f0 + ee34437 commit 86d4d56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Filters/General/PaintFilter/PaintFilter.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ function handlePaintTriangles({ triangleList }) {
vec3.scaleAndAdd(point, point, step1, u);
vec3.scaleAndAdd(point, point, step2, v);

point[0] = Math.floor(point[0]);
point[1] = Math.floor(point[1]);
point[2] = Math.floor(point[2]);
point[0] = Math.round(point[0]);
point[1] = Math.round(point[1]);
point[2] = Math.round(point[2]);

if (
point[0] >= 0 &&
Expand Down

0 comments on commit 86d4d56

Please sign in to comment.