MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SaveMesh

Method SaveMesh

Source/Engine/Content/Assets/SkinnedModel.cpp:704–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704bool 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
720bool SkinnedModel::SaveMesh(WriteStream& stream, const ModelData& modelData, int32 lodIndex, int32 meshIndex)
721{

Callers

nothing calls this directly

Calls 3

CountMethod · 0.45
WriteMethod · 0.45
SaveMethod · 0.45

Tested by

no test coverage detected