R141 THREE.Object3d(); error

There is an error on threejs release 141, “Object3d().add is undefined”.

Maybe like this:

mesh_1=new THREE.Object3D;

I have the same error “THREE.Object3D.add: object not an instance of THREE.Object3D. undefined” as soon as I replace the three.module.js release 140 with release 141 the error occurred.

Can you show us your code so others can see where how the error occurs?

1 Like

The error occurred with code glft.scene I fixed it with gltf.scene.children[0]

1 Like

here is the source code