Skip to content

Commit

Permalink
Emit different keyframe skeleton struct based on limb type
Browse files Browse the repository at this point in the history
  • Loading branch information
hensldm committed Jul 27, 2024
1 parent 0285e11 commit bc5ee30
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 bc5ee30

Please sign in to comment.