Skip to content

Commit

Permalink
updated edge build
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Apr 9, 2016
1 parent 23a773a commit 7eb9ac7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions build/matter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* matter-js 0.9.2 by @liabru 2016-04-07
* matter-js master by @liabru 2016-04-09
* http://brm.io/matter-js/
* License MIT
*/
Expand Down Expand Up @@ -4546,6 +4546,11 @@ var Body = require('../body/Body');
broadphasePairs = allBodies;
}

// clear all composite modified flags
if (world.isModified) {
Composite.setModified(world, false, false, true);
}

// narrowphase pass: find actual collisions, then create or update collision pairs
var collisions = broadphase.detector(broadphasePairs, engine);

Expand Down Expand Up @@ -4587,10 +4592,6 @@ var Body = require('../body/Body');
// clear force buffers
_bodiesClearForces(allBodies);

// clear all composite modified flags
if (world.isModified)
Composite.setModified(world, false, false, true);

Events.trigger(engine, 'afterUpdate', event);

return engine;
Expand Down
4 changes: 2 additions & 2 deletions build/matter.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7eb9ac7

Please sign in to comment.