Skip to content

Library needs to be updated to latest ThreeJS version #19

@kujukuju

Description

@kujukuju

Getting the error: "Octree.js:2094 Uncaught TypeError: Cannot read property 'faces' of undefined".
I'm pretty sure this is because the library is out of date.

My temporary fix (to help anyone else affected by this) is to change line 2085 to be:
if ( object.object instanceof THREE.Object3D ) { return this.intersectOctreeObject(object.object, recursive);

The "return this.intersectOctreeObject" forces it to keep recursing until it finds the type of non-octree object it's looking for.

Anyways, thought I'd let you know. I'd also like an updated version of the library in case I run into some weird edge cases in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions