diff options
author | aap <aap@papnet.eu> | 2020-12-01 17:42:18 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-01 17:42:18 +0100 |
commit | 83bbb631d1105502fb3c5b3af90578226ba35583 (patch) | |
tree | f317568c6c19250fa29b41ac0d2a99003f4cc169 /src/animation/AnimBlendSequence.cpp | |
parent | fix cam-fix (diff) | |
download | re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar.gz re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar.bz2 re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar.lz re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar.xz re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar.zst re3-83bbb631d1105502fb3c5b3af90578226ba35583.zip |
Diffstat (limited to 'src/animation/AnimBlendSequence.cpp')
-rw-r--r-- | src/animation/AnimBlendSequence.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/animation/AnimBlendSequence.cpp b/src/animation/AnimBlendSequence.cpp index 5a2fa605..c958b71a 100644 --- a/src/animation/AnimBlendSequence.cpp +++ b/src/animation/AnimBlendSequence.cpp @@ -176,3 +176,24 @@ CAnimBlendSequence::RemoveUncompressedData(void) keyFrames = nil; } +#ifdef USE_CUSTOM_ALLOCATOR +bool +CAnimBlendSequence::MoveMemory(void) +{ + if(keyFrames){ + void *newaddr = gMainHeap.MoveMemory(keyFrames); + if(newaddr != keyFrames){ + keyFrames = newaddr; + return true; + } + }else if(keyFramesCompressed){ + void *newaddr = gMainHeap.MoveMemory(keyFramesCompressed); + if(newaddr != keyFramesCompressed){ + keyFramesCompressed = newaddr; + return true; + } + } + return false; +} +#endif + |