| 702 | } |
| 703 | |
| 704 | bool SkinnedModel::SaveMesh(WriteStream& stream, const MeshBase* mesh) const |
| 705 | { |
| 706 | if (ModelBase::SaveMesh(stream, mesh)) |
| 707 | return true; |
| 708 | static_assert(MODEL_MESH_VERSION == 2, "Update code"); |
| 709 | auto skinnedMesh = (const SkinnedMesh*)mesh; |
| 710 | |
| 711 | // Blend Shapes |
| 712 | uint16 blendShapesCount = skinnedMesh->BlendShapes.Count(); |
| 713 | stream.Write(blendShapesCount); |
| 714 | for (auto& blendShape : skinnedMesh->BlendShapes) |
| 715 | blendShape.Save(stream); |
| 716 | |
| 717 | return false; |
| 718 | } |
| 719 | |
| 720 | bool SkinnedModel::SaveMesh(WriteStream& stream, const ModelData& modelData, int32 lodIndex, int32 meshIndex) |
| 721 | { |