Skip to content

Commit f490e90

Browse files
authored
Merge pull request #116 from sniok/fix-removing-constraints
Fix removeConstraint operation
2 parents d65eeb4 + 99f6276 commit f490e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ self.onmessage = (e) => {
332332
break
333333
}
334334
case 'removeConstraint':
335-
world.removeConstraint(uuid)
335+
world.constraints.filter(({ uuid: thisId }) => thisId === uuid).map((c) => world.removeConstraint(c))
336336
break
337337

338338
case 'enableConstraint':

0 commit comments

Comments
 (0)