Previously, this code was functioning correctly on an outdated THREE.JS version:
var loader = new THREE.JSONLoader();
loader.load("ns.js", function(geometry){
mesh = new THREE.Mesh( geometry, new THREE.MeshFaceMaterial(geometry.materials));
mesh.scale.x = mesh.scale.y = mesh.scale.z = 0.05;
scene.add(mesh);
loadRestOfScene();
});
However, in a newer version, "geometry" no longer contains a materials property. How can I retrieve that array?