mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.71k stars 35.38k forks source link

ColladaLoader TypeError: surface is undefined #5431

Closed pl1307 closed 10 years ago

pl1307 commented 10 years ago

When I'm trying to import some of my files in the three.js editor this error message appears: TypeError: surface is undefined ColladaLoader.js:3430. Unfortunately I can't load the file in this message, because it is to large. I fixed the issue myself with this if-clause:

if (surface) { var image = images[surface.init_from]; ... }

Then the export worked.

mrdoob commented 10 years ago

Can you upload the files to dropbox or some other file sharing service? How did you generate the files?

pl1307 commented 10 years ago

I have generated them with Cinema 4D. And here is the link: https://www.dropbox.com/s/ytaclqbwsva7cmd/Button.dae?dl=0

mrdoob commented 10 years ago

Thanks for the file. Fixed in the dev branch.