Hi,
found weird bug in babylonjs 4
here is playground
there
scene.onNewMeshAddedObservable.add(function (mesh) {
if (mesh instanceof BABYLON.Mesh) {
highlight.addExcludedMesh(mesh);
}
});
is called before mesh gets props so it crashes with random errors,
usually with Cannot read property '_onBeforeBindObservable' of undefined
,
because _internalMeshDataInfo
is still undefined
I am doing something wrong ?
Thank you