提交 11461f0b 编写于 作者: M Mr.doob

Brought back automatic centroid computation.

上级 95bb462e
......@@ -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 ) {
......
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册