Brought back automatic centroid computation.

This commit is contained in:
Mr.doob
2011-05-31 04:09:01 +01:00
parent 95bb462ed5
commit 11461f0b5d
2 changed files with 10 additions and 9 deletions
+2 -1
View File
@@ -56,8 +56,9 @@ THREE.JSONLoader.prototype.createModel = function ( json, callback, texture_path
parseMorphing( scale );
parseEdges();
geometry.computeCentroids();
geometry.computeFaceNormals();
// geometry.computeCentroids();
// geometry.computeEdgeFaces();
function parseModel( scale ) {
+8 -8
View File
@@ -7,7 +7,7 @@ THREE.SceneLoader = function () {
this.onLoadStart = function () {};
this.onLoadProgress = function() {};
this.onLoadComplete = function () {};
this.callbackSync = function () {};
this.callbackProgress = function () {};
@@ -60,24 +60,24 @@ THREE.SceneLoader.prototype = {
};
// find out if there are some colliders
var hasColliders = false;
for( dd in data.objects ) {
o = data.objects[ dd ];
if ( o.meshCollider ) {
hasColliders = true;
break;
}
}
if ( hasColliders ) {
result.scene.collisions = new THREE.CollisionSystem();
}