From 81ea5138751fa5bcfe581422c8c29f74f3ebf3b2 Mon Sep 17 00:00:00 2001 From: bwlewis Date: Sun, 25 Jun 2017 10:03:27 -0400 Subject: [PATCH] address issue #58 --- inst/htmlwidgets/scatterplotThree.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inst/htmlwidgets/scatterplotThree.js b/inst/htmlwidgets/scatterplotThree.js index fca5c51..d32f8cd 100644 --- a/inst/htmlwidgets/scatterplotThree.js +++ b/inst/htmlwidgets/scatterplotThree.js @@ -104,6 +104,8 @@ Widget.scatter = function(w, h) _this.renderer = new THREE.CanvasRenderer(); _this.renderer.GL = false; } + _this.frame = -1; // reset animation too, + _this.scene = 0; // see issue #58 _this.renderer.sortObjects = false; _this.renderer.autoClearColor = false; _this.renderer.setSize(width, height);