public VertexData GetVertexDataForBinding()
{
if ( subMesh.useSharedVertices )
return parent.GetVertexDataForBinding();
else
{
VertexDataBindChoice c =
parent.ChooseVertexDataForBinding(
subMesh.VertexAnimationType != VertexAnimationType.None );
switch ( c )
{
case VertexDataBindChoice.Original:
return subMesh.vertexData;
case VertexDataBindChoice.HardwareMorph:
return hardwareVertexAnimVertexData;
case VertexDataBindChoice.SoftwareMorph:
return softwareVertexAnimVertexData;
case VertexDataBindChoice.SoftwareSkeletal:
return skelAnimVertexData;
};
// keep compiler happy
return subMesh.vertexData;
}
}