Corrected some bugs
This commit is contained in:
parent
453d199c27
commit
f2001e2bfa
|
@ -124,7 +124,7 @@ var ProgressiveLoader = function(path, scene, materialCreator, transparentElemen
|
||||||
}
|
}
|
||||||
currentMesh = new THREE.Mesh(geo, material);
|
currentMesh = new THREE.Mesh(geo, material);
|
||||||
|
|
||||||
if (transparentElements.indexOf(tmp.trim()) !== -1) {
|
if (tmp && transparentElements.indexOf(tmp.trim()) !== -1) {
|
||||||
THREEx.Transparency.push(currentMesh);
|
THREEx.Transparency.push(currentMesh);
|
||||||
} else {
|
} else {
|
||||||
currentMesh.raycastable = true;
|
currentMesh.raycastable = true;
|
||||||
|
@ -164,6 +164,7 @@ var ProgressiveLoader = function(path, scene, materialCreator, transparentElemen
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentMesh) {
|
if (currentMesh) {
|
||||||
|
currentMesh.material.side = THREE.DoubleSide;
|
||||||
currentMesh.geometry.computeFaceNormals();
|
currentMesh.geometry.computeFaceNormals();
|
||||||
currentMesh.geometry.computeBoundingSphere();
|
currentMesh.geometry.computeBoundingSphere();
|
||||||
currentMesh.geometry.groupsNeedUpdate = true;
|
currentMesh.geometry.groupsNeedUpdate = true;
|
||||||
|
|
Loading…
Reference in New Issue