mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 05:52:42 -05:00
Merge pull request #1014 from adroitwhiz/remove-old-todos
Remove compound path TODOs from blob.js
This commit is contained in:
commit
a730ac55f4
1 changed files with 0 additions and 2 deletions
|
@ -272,7 +272,6 @@ class Blobbiness {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = items.length - 1; i >= 0; i--) {
|
for (let i = items.length - 1; i >= 0; i--) {
|
||||||
// TODO handle compound paths
|
|
||||||
if (items[i] instanceof paper.Path && (!items[i].fillColor || items[i].fillColor._alpha === 0)) {
|
if (items[i] instanceof paper.Path && (!items[i].fillColor || items[i].fillColor._alpha === 0)) {
|
||||||
// Gather path segments
|
// Gather path segments
|
||||||
const subpaths = [];
|
const subpaths = [];
|
||||||
|
@ -305,7 +304,6 @@ class Blobbiness {
|
||||||
|
|
||||||
// Gather path segments
|
// Gather path segments
|
||||||
const subpaths = [];
|
const subpaths = [];
|
||||||
// TODO: Handle compound path
|
|
||||||
if (items[i] instanceof paper.Path && !items[i].closed) {
|
if (items[i] instanceof paper.Path && !items[i].closed) {
|
||||||
const firstSeg = items[i].clone();
|
const firstSeg = items[i].clone();
|
||||||
const intersections = firstSeg.getIntersections(lastPath);
|
const intersections = firstSeg.getIntersections(lastPath);
|
||||||
|
|
Loading…
Reference in a new issue