Skip to content

Commit

Permalink
refactor(GlobeControls): remove three layer for helpers.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Jan 30, 2023
1 parent 971f175 commit a1a8391
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Controls/GlobeControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,6 @@ class GlobeControls extends THREE.EventDispatcher {
if (enableTargetHelper) {
cameraTarget.add(helpers.target);
view.scene.add(helpers.picking);
const layerTHREEjs = view.mainLoop.gfxEngine.getUniqueThreejsLayer();
helpers.target.layers.set(layerTHREEjs);
helpers.picking.layers.set(layerTHREEjs);
this.camera.layers.enable(layerTHREEjs);
}

if (placement.isExtent) {
Expand Down

0 comments on commit a1a8391

Please sign in to comment.