mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-27 13:59:01 -05:00
changed vertices in Bounds.create to optional
This commit is contained in:
parent
b98cef000d
commit
ee96d16cb5
1 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,10 @@ var Bounds = {};
|
||||||
min: { x: 0, y: 0 },
|
min: { x: 0, y: 0 },
|
||||||
max: { x: 0, y: 0 }
|
max: { x: 0, y: 0 }
|
||||||
};
|
};
|
||||||
Bounds.update(bounds, vertices);
|
|
||||||
|
if (vertices)
|
||||||
|
Bounds.update(bounds, vertices);
|
||||||
|
|
||||||
return bounds;
|
return bounds;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue