Axiom.Animating.VertexAnimationTrack.HasNonZeroKeyFrames C# (CSharp) Method

HasNonZeroKeyFrames() public method

Method to determine if this track has any KeyFrames which are doing anything useful - can be used to determine if this track can be optimised out.
public HasNonZeroKeyFrames ( ) : bool
return bool
		public override bool HasNonZeroKeyFrames()
		{
			if ( animationType == VertexAnimationType.Morph )
				return KeyFrames.Count > 0;
			else
			{
				foreach ( KeyFrame kbase in KeyFrames )
				{
					// look for keyframes which have a pose influence which is non-zero
					VertexPoseKeyFrame kf = (VertexPoseKeyFrame)kbase;
					foreach ( PoseRef poseRef in kf.PoseRefs )
					{
						if ( poseRef.influence > 0.0f )
							return true;
					}
				}
				return false;
			}
		}