0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-26 13:49:01 -05:00

fixed bug in Demo.reset that was creating multiple MouseConstraint

This commit is contained in:
liabru 2014-12-28 17:09:04 +00:00
parent 066a416ba5
commit 8204d9736a

View file

@ -1533,7 +1533,6 @@
Bodies.rectangle(-offset, 300, 50.5, 600.5 + 2 * offset, { isStatic: true })
]);
_mouseConstraint = MouseConstraint.create(_engine);
World.add(_world, _mouseConstraint);
var renderOptions = _engine.render.options;