Преглед изворни кода

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) {