Skip to content

Commit

Permalink
Merge pull request #994 from OpenGeoscience/webgl-point-actor
Browse files Browse the repository at this point in the history
Don't remove and readd the actor when rebuilding webgl points.
  • Loading branch information
manthey authored Apr 11, 2019
2 parents 0de397f + 284e6ab commit e95d2ff
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/webgl/pointFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,15 +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);
m_this.renderer().contextRenderer().render();
if (!m_this.renderer().contextRenderer().hasActor(m_actor)) {
m_this.renderer().contextRenderer().addActor(m_actor);
}
m_this.buildTime().modified();
return m_this;
};
Expand Down

0 comments on commit e95d2ff

Please sign in to comment.