mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 10:49:23 +00:00
Added support for depth groups on the renderer
This commit is contained in:
@@ -40,7 +40,10 @@ CVector3f CBone::TransformedPosition(const CBoneTransformData& rkData) const
|
||||
|
||||
bool CBone::IsRoot() const
|
||||
{
|
||||
return (mpParent == nullptr);
|
||||
// In Retro's engine most skeletons have another bone named Skeleton_Root parented directly under the
|
||||
// actual root bone... that bone sometimes acts as the actual root (transforming the entire skeleton),
|
||||
// so we need to account for both
|
||||
return (mpParent == nullptr || mpParent->Parent() == nullptr);
|
||||
}
|
||||
|
||||
// ************ CSkeleton ************
|
||||
|
||||
Reference in New Issue
Block a user