提交 0fb20430 编写于 作者: T Takahiro

MMDLoader: add bones to BufferGeometry.userData

上级 cce7e317
......@@ -582,7 +582,7 @@ THREE.MMDAnimationHelper = ( function () {
_optimizeIK: function ( mesh, physicsEnabled ) {
var iks = mesh.geometry.userData.MMD.iks;
var bones = mesh.geometry.bones;
var bones = mesh.geometry.userData.MMD.bones;
for ( var i = 0, il = iks.length; i < il; i ++ ) {
......
......@@ -842,6 +842,7 @@ THREE.MMDLoader = ( function () {
geometry.morphAttributes.position = morphPositions;
geometry.userData.MMD = {
bones: bones,
iks: iks,
grants: grants,
rigidBodies: rigidBodies,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册