1
0
KF2-Dev-Scripts/Engine/Classes/AnimationCompressionAlgorithm_RemoveEverySecondKey.uc

35 lines
900 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
/**
* Keyframe reduction algorithm that simply removes every second key.
*
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
class AnimationCompressionAlgorithm_RemoveEverySecondKey extends AnimationCompressionAlgorithm
native(Anim);
/** Animations with fewer than MinKeys will not lose any keys. */
var() int MinKeys;
/**
* If bStartAtSecondKey is TRUE, remove keys 1,3,5,etc.
* If bStartAtSecondKey is FALSE, remove keys 0,2,4,etc.
*/
var() bool bStartAtSecondKey;
cpptext
{
protected:
/**
* Keyframe reduction algorithm that simply removes every second key.
*
* @return TRUE if the keyframe reduction was successful.
*/
virtual void DoReduction(class UAnimSequence* AnimSeq, class USkeletalMesh* SkelMesh, const TArray<class FBoneData>& BoneData);
}
defaultproperties
{
Description="Remove Every Second Key"
MinKeys=10
}