Skip to content

Commit 57d8576

Browse files
committed
add check for decomp removeDuplicatePoints feature
1 parent 947cb97 commit 57d8576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/factory/Bodies.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ var Vector = require('../geometry/Vector');
258258
decomp.makeCCW(concave);
259259
if (removeCollinear !== false)
260260
decomp.removeCollinearPoints(concave, removeCollinear);
261-
if (removeDuplicatePoints !== false)
261+
if (removeDuplicatePoints !== false && decomp.removeDuplicatePoints)
262262
decomp.removeDuplicatePoints(concave, removeDuplicatePoints);
263263

264264
// use the quick decomposition algorithm (Bayazit)

0 commit comments

Comments
 (0)