public VertexData GetVertexDataForBinding()
{
VertexDataBindChoice c =
this.ChooseVertexDataForBinding( this.mesh.SharedVertexDataAnimationType != VertexAnimationType.None );
switch ( c )
{
case VertexDataBindChoice.Original:
return this.mesh.SharedVertexData;
case VertexDataBindChoice.HardwareMorph:
return this.hardwareVertexAnimVertexData;
case VertexDataBindChoice.SoftwareMorph:
return this.softwareVertexAnimVertexData;
case VertexDataBindChoice.SoftwareSkeletal:
return this.skelAnimVertexData;
}
;
// keep compiler happy
return this.mesh.SharedVertexData;
}