public void AddPropertyKeyFrame(VmdPropertyFrameData frame) { if (frame.FrameTime >= 0) { PropertyFrameList.Add(frame); } }
private void ExportVmd(Stream stream) { var motionList = new List <VmdMotionFrameData>(); foreach (var value in BoneFrameDict.Values) { motionList.AddRange(value); } var morphList = new List <VmdMorphFrameData>(); foreach (var value in MorphFrameDict.Values) { morphList.AddRange(value); } var exporter = new VmdExporter(stream); exporter.Export(new VmdMotionData { Header = new VmdHeaderData { ModelName = World.ModelName }, MotionArray = motionList.ToArray(), MorphArray = morphList.ToArray(), PropertyArray = PropertyFrameList.ToArray(), }); }