mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Don't pack channels when reading encoded frames from mohsh and above (they're already packed in the animation file)
This commit is contained in:
parent
531340627d
commit
dd85118a9c
1 changed files with 1 additions and 3 deletions
|
@ -527,7 +527,7 @@ void ReadEncodedFramesEx(msg_t *msg, skelAnimDataGameHeader_t *enAnim)
|
|||
pChannel = &enAnim->ary_channels[i];
|
||||
|
||||
name = enAnim->channelList.ChannelName(&skeletor_c::m_channelNames, i);
|
||||
type = GetChannelTypeFromName(name);
|
||||
type = GetBoneChannelType(name);
|
||||
frameCnt = MSG_ReadShort(msg);
|
||||
|
||||
switch (type) {
|
||||
|
@ -704,8 +704,6 @@ skelAnimDataGameHeader_t *skeletor_c::LoadProcessedAnimEx(const char *path, void
|
|||
enAnim->channelList.AddChannel(m_channelNames.RegisterChannel(MSG_ReadString(&msg)));
|
||||
}
|
||||
|
||||
enAnim->channelList.PackChannels();
|
||||
|
||||
newFrame = (skelAnimGameFrame_t *)Skel_Alloc(enAnim->numFrames * sizeof(skelAnimGameFrame_t));
|
||||
enAnim->m_frame = newFrame;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue