mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-31 18:14:55 -05:00
add check for decomp removeDuplicatePoints feature
This commit is contained in:
parent
947cb9717f
commit
57d8576fd1
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ var Vector = require('../geometry/Vector');
|
|||
decomp.makeCCW(concave);
|
||||
if (removeCollinear !== false)
|
||||
decomp.removeCollinearPoints(concave, removeCollinear);
|
||||
if (removeDuplicatePoints !== false)
|
||||
if (removeDuplicatePoints !== false && decomp.removeDuplicatePoints)
|
||||
decomp.removeDuplicatePoints(concave, removeDuplicatePoints);
|
||||
|
||||
// use the quick decomposition algorithm (Bayazit)
|
||||
|
|
Loading…
Add table
Reference in a new issue