From 0a735c4a1252fdfe54bb81ac01680f2bf3d221bc Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Thu, 6 Feb 2020 12:28:44 +1100 Subject: [PATCH] Since the bounding box has applied world transform of the node, it should not be union with geometry's bounding box. --- src/Renderable.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Renderable.js b/src/Renderable.js index 7f23acb2d..20b945c80 100644 --- a/src/Renderable.js +++ b/src/Renderable.js @@ -120,10 +120,6 @@ var Renderable = Node.extend(/** @lends clay.Renderable# */ { getBoundingBox: function (filter, out) { out = Node.prototype.getBoundingBox.call(this, filter, out); - if (this.geometry && this.geometry.boundingBox) { - out.union(this.geometry.boundingBox); - } - return out; },