Corrected some bugs

This commit is contained in:
Thomas FORGIONE 2015-06-12 11:15:01 +02:00
parent 453d199c27
commit f2001e2bfa
2 changed files with 3 additions and 2 deletions

View File

@ -124,7 +124,7 @@ var ProgressiveLoader = function(path, scene, materialCreator, transparentElemen
}
currentMesh = new THREE.Mesh(geo, material);
if (transparentElements.indexOf(tmp.trim()) !== -1) {
if (tmp && transparentElements.indexOf(tmp.trim()) !== -1) {
THREEx.Transparency.push(currentMesh);
} else {
currentMesh.raycastable = true;
@ -164,6 +164,7 @@ var ProgressiveLoader = function(path, scene, materialCreator, transparentElemen
}
if (currentMesh) {
currentMesh.material.side = THREE.DoubleSide;
currentMesh.geometry.computeFaceNormals();
currentMesh.geometry.computeBoundingSphere();
currentMesh.geometry.groupsNeedUpdate = true;

View File

@ -48,7 +48,7 @@ module.exports = function(io) {
socket.on('next', function() {
var bound = 1;
var bound = 100;
var toSend = [];
var elt;