From e197e9745d136c71f44c1bdd8b617d18793cb783 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Thu, 11 Apr 2019 08:07:20 -0400 Subject: [PATCH] Don't remove and readd the actor when rebuilding webgl points. --- src/webgl/pointFeature.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/webgl/pointFeature.js b/src/webgl/pointFeature.js index a9c8396646..5746fad7a0 100644 --- a/src/webgl/pointFeature.js +++ b/src/webgl/pointFeature.js @@ -456,14 +456,10 @@ var webgl_pointFeature = function (arg) { * @returns {this} */ this._build = function () { - - if (m_actor) { - m_this.renderer().contextRenderer().removeActor(m_actor); - } - createGLPoints(); - - m_this.renderer().contextRenderer().addActor(m_actor); + if (!m_this.renderer().contextRenderer().hasActor(m_actor)) { + m_this.renderer().contextRenderer().addActor(m_actor); + } m_this.renderer().contextRenderer().render(); m_this.buildTime().modified(); return m_this;