diff options
author | aap <aap@papnet.eu> | 2020-05-08 15:59:57 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-08 15:59:57 +0200 |
commit | 2eee4c51764d0d73986f2aae64fbaf4c0beeb9c1 (patch) | |
tree | 25f43ed9e6a30b05603d3f1b75be3d3f8d2fee5f /src/animation/AnimBlendSequence.h | |
parent | Merge pull request #522 from Nick007J/miami (diff) | |
download | re3-2eee4c51764d0d73986f2aae64fbaf4c0beeb9c1.tar re3-2eee4c51764d0d73986f2aae64fbaf4c0beeb9c1.tar.gz re3-2eee4c51764d0d73986f2aae64fbaf4c0beeb9c1.tar.bz2 re3-2eee4c51764d0d73986f2aae64fbaf4c0beeb9c1.tar.lz re3-2eee4c51764d0d73986f2aae64fbaf4c0beeb9c1.tar.xz re3-2eee4c51764d0d73986f2aae64fbaf4c0beeb9c1.tar.zst re3-2eee4c51764d0d73986f2aae64fbaf4c0beeb9c1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/animation/AnimBlendSequence.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/animation/AnimBlendSequence.h b/src/animation/AnimBlendSequence.h index 1246d7b4..3d467078 100644 --- a/src/animation/AnimBlendSequence.h +++ b/src/animation/AnimBlendSequence.h @@ -33,13 +33,18 @@ public: CAnimBlendSequence(void); virtual ~CAnimBlendSequence(void); void SetName(char *name); - void SetNumFrames(int numFrames, bool translation); + void SetNumFrames(int numFrames, bool translation, bool compressed); void RemoveQuaternionFlips(void); KeyFrame *GetKeyFrame(int n) { return type & KF_TRANS ? &((KeyFrameTrans*)keyFrames)[n] : &((KeyFrame*)keyFrames)[n]; } + KeyFrame *GetKeyFrameCompressed(int n) { + return type & KF_TRANS ? + &((KeyFrameTrans*)keyFramesCompressed)[n] : + &((KeyFrame*)keyFramesCompressed)[n]; + } bool HasTranslation(void) { return !!(type & KF_TRANS); } // TODO? these are unused // void Uncompress(void); |