Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b81710

Browse files
ketourneauDesplandis
authored andcommitted
fix(PointCloud): Allow using custom object3d on PointCloudLayer
1 parent 982b908 commit 2b81710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Layer/PointCloudLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class PointCloudLayer extends GeometryLayer {
147147
* name. See the list of properties to know which one can be specified.
148148
*/
149149
constructor(id, config = {}) {
150-
super(id, new THREE.Group(), config);
150+
super(id, config.object3d || new THREE.Group(), config);
151151
this.isPointCloudLayer = true;
152152
this.protocol = 'pointcloud';
153153

0 commit comments

Comments
 (0)