From c31c5e9fec72863e38cdfef8c0b1915140234253 Mon Sep 17 00:00:00 2001 From: Derek Hensley Date: Fri, 26 Jul 2024 21:31:14 -0700 Subject: [PATCH] Emit different keyframe skeleton struct based on limb type (#323) --- ZAPD/ZCKeyFrame.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ZAPD/ZCKeyFrame.cpp b/ZAPD/ZCKeyFrame.cpp index 387f8ad2..3893394f 100644 --- a/ZAPD/ZCKeyFrame.cpp +++ b/ZAPD/ZCKeyFrame.cpp @@ -130,7 +130,17 @@ size_t ZKeyFrameSkel::GetRawDataSize() const std::string ZKeyFrameSkel::GetSourceTypeName() const { - return "KeyFrameSkeleton"; + switch (limbType) + { + case ZKeyframeSkelType::Normal: + return "KeyFrameSkeleton"; + + case ZKeyframeSkelType::Flex: + return "KeyFrameFlexSkeleton"; + + default: + return "KeyFrameSkeleton"; + } } ZResourceType ZKeyFrameSkel::GetResourceType() const