Skip to content

Commit

Permalink
Switch to Group for selectable objects. This offers better render con…
Browse files Browse the repository at this point in the history
…trol with renderOrder. (RobotWebTools#340)
  • Loading branch information
J-Rojas authored Sep 19, 2020
1 parent a62a3a3 commit 12db693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/visualization/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ ROS3D.Viewer = function(options) {
this.scene.add(this.directionalLight);

// propagates mouse events to three.js objects
this.selectableObjects = new THREE.Object3D();
this.selectableObjects = new THREE.Group();
this.scene.add(this.selectableObjects);
var mouseHandler = new ROS3D.MouseHandler({
renderer : this.renderer,
Expand Down

0 comments on commit 12db693

Please sign in to comment.