浏览代码

ColladaLoader: Increased maxbones to 64.

Mr.doob 11 年之前
父节点
当前提交
c87d227031
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      examples/js/loaders/ColladaLoader.js

+ 3 - 1
examples/js/loaders/ColladaLoader.js

@@ -645,7 +645,7 @@ THREE.ColladaLoader = function () {
 	function applySkin ( geometry, instanceCtrl, frame ) {
 
 		// TODO: get this from the renderer or options
-		var maxbones = 30;
+		var maxbones = 64;
 
 		var skinController = controllers[ instanceCtrl.url ];
 
@@ -744,6 +744,8 @@ THREE.ColladaLoader = function () {
 
 		}
 
+		console.log( 'ColladaLoader:', animationBounds.ID + ' has ' + sortedbones.length + ' bones.' );
+
 		//if using hardware skinning, move the vertices into the binding pose
 		if(sortedbones.length < maxbones) {