mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-27 09:50:52 -05:00
fixed Body.create with no options
This commit is contained in:
parent
4da2e25f24
commit
0e5a4579b6
1 changed files with 3 additions and 1 deletions
|
@ -122,9 +122,11 @@ var Axes = require('../geometry/Axes');
|
|||
* @method _initProperties
|
||||
* @private
|
||||
* @param {body} body
|
||||
* @param {} options
|
||||
* @param {} [options]
|
||||
*/
|
||||
var _initProperties = function(body, options) {
|
||||
options = options || {};
|
||||
|
||||
// init required properties (order is important)
|
||||
Body.set(body, {
|
||||
bounds: body.bounds || Bounds.create(body.vertices),
|
||||
|
|
Loading…
Reference in a new issue