提交 49d69feb 编写于 作者: M Mr.doob

Merge pull request #5000 from gero3/FixMorphTargetHuman

Fix a small problem in UCSCharacter
......@@ -41,7 +41,7 @@ THREE.UCSCharacter = function() {
geometry.computeBoundingBox();
geometry.computeVertexNormals();
THREE.AnimationHandler.add( geometry.animation );
//THREE.AnimationHandler.add( geometry.animation );
mesh = new THREE.SkinnedMesh( geometry, new THREE.MeshFaceMaterial() );
scope.root.add( mesh );
......@@ -53,7 +53,7 @@ THREE.UCSCharacter = function() {
mesh.castShadow = true;
mesh.receiveShadow = true;
animation = new THREE.Animation( mesh, geometry.animation.name );
animation = new THREE.Animation( mesh, geometry.animation );
animation.play();
scope.setSkin(0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册