Skip to content

Commit

Permalink
Emit different keyframe skeleton struct based on limb type (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
hensldm authored Jul 27, 2024
1 parent 0285e11 commit c31c5e9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ZAPD/ZCKeyFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c31c5e9

Please sign in to comment.