tentone / potree-core

Potree point cloud viewer library core components for easier integration in a three.js project.
https://tentone.github.io/potree-core/
Other
177 stars 54 forks source link

`pcoGeometry` is undefined during clone, causes an error #43

Open wbobeirne opened 1 month ago

wbobeirne commented 1 month ago

Sorry for the obfuscated error, but I'm getting an uncaught error when I attempt to clone a scene with point clouds in it. It looks like this constructor is getting called without the pcoGeometry when the scene is cloned:

https://github.com/tentone/potree-core/blob/238198bfb1d7c13fbe852e63967ef20f995675f3/source/point-cloud-octree.ts#L61

Not sure if this is a three problem with calling constructors improperly, or a potree problem where it needs to be more defensively coded.

tentone commented 1 month ago

Thanks a lot for reporting.

Will take a look into this one