diff --git a/src/geometry/Bounds.js b/src/geometry/Bounds.js index adfba16..8915d27 100644 --- a/src/geometry/Bounds.js +++ b/src/geometry/Bounds.js @@ -19,7 +19,10 @@ var Bounds = {}; min: { x: 0, y: 0 }, max: { x: 0, y: 0 } }; - Bounds.update(bounds, vertices); + + if (vertices) + Bounds.update(bounds, vertices); + return bounds; };