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 m