Skip to content

Commit

Permalink
fix(PointCloud): Allow using custom object3d on PointCloudLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin ETOURNEAU authored and Desplandis committed Jul 19, 2024
1 parent 982b908 commit 2b81710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layer/PointCloudLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class PointCloudLayer extends GeometryLayer {
* name. See the list of properties to know which one can be specified.
*/
constructor(id, config = {}) {
super(id, new THREE.Group(), config);
super(id, config.object3d || new THREE.Group(), config);
this.isPointCloudLayer = true;
this.protocol = 'pointcloud';

Expand Down

0 comments on commit 2b81710

Please sign in to comment.