Add automatic skeleton retargeting when playing Anim Graph on other skeletal model

This commit is contained in:
Wojtek Figat
2023-04-26 20:03:27 +02:00
parent 12f5157bfb
commit 915f6a719d
7 changed files with 104 additions and 39 deletions

View File

@@ -146,12 +146,6 @@ bool AnimGraph::IsReady() const
return BaseModel && BaseModel->IsLoaded();
}
bool AnimGraph::CanUseWithSkeleton(SkinnedModel* other) const
{
// All data loaded and nodes count the same
return IsReady() && other && other->IsLoaded() && other->Skeleton.Nodes.Count() == BaseModel->Skeleton.Nodes.Count();
}
void AnimGraph::ClearCustomNode(Node* node)
{
// Clear data