Hello.
I was trying to serialize my scene, but it threw an error in line 29 of babylon.2.4.js file.
This is the error:
babylon.2.4.js:29 Uncaught TypeError: Cannot read property 'length' of undefined
at r (babylon.2.4.js:29)
at Function.o.Serialize (babylon.2.4.js:29)
I think is missing a validation at a for loop
for(var a=0;a<t.subMeshes.length;a++){
//...
}
beacause in my case t.subMeshes is undefine and that seems to be causing the error.
My workarround was to add a validation in order to skip that for loop if t.subMeshes is undefined, but my next problem was at the moment of loading my scene.
Uncaught Error: No camera defined
at i.render (babylon.2.4.m.js:11)
I attached my scene in json format.
Do you have any idea to solve it?
Thanks in advance.
sceneP.zip