1
Vote

MMF.MotionBasicMotionManager.AddMotionFromStream

description

    public IMotionProvider AddMotionFromStream(string fileName, Stream stream,bool ignoreParent)
    {
        IMotionProvider motion = new MMDMotion(stream, ignoreParent);
        motion.MotionFinished += motion_MotionFinished;
        SubscribedMotionMap.Add(new KeyValuePair<string, IMotionProvider>(fileName, motion));
        if (MotionListUpdated != null)MotionListUpdated(this, new EventArgs());
        return motion;
    }
処理が抜けているようです。
    public IMotionProvider AddMotionFromStream(string fileName, Stream stream,bool ignoreParent)
    {
        IMotionProvider motion = new MMDMotion(stream, ignoreParent);
        motion.AttachMotion(skinningProvider.Bone);    // <----
        motion.MotionFinished += motion_MotionFinished;
        SubscribedMotionMap.Add(new KeyValuePair<string, IMotionProvider>(fileName, motion));
        if (MotionListUpdated != null)MotionListUpdated(this, new EventArgs());
        return motion;
    }

comments