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:
smallmodel 2024-06-11 00:01:41 +02:00
parent 531340627d
commit dd85118a9c
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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;