From c75a544b8b10fa6555f0a0fef0687830fa5c0d50 Mon Sep 17 00:00:00 2001 From: Brian Peiris Date: Tue, 15 Nov 2016 02:07:00 -0800 Subject: [PATCH] Actually remove behaviors in removeAllBehaviors --- src/utilities/shims/behaviors.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utilities/shims/behaviors.js b/src/utilities/shims/behaviors.js index 97d8d812..bcf6c16a 100644 --- a/src/utilities/shims/behaviors.js +++ b/src/utilities/shims/behaviors.js @@ -145,6 +145,8 @@ THREE.Object3D.prototype.removeAllBehaviors = function () } } + + this.__behaviorList.length = 0; } /**