mirror of https://github.com/AxioDL/metaforce.git
Proper CAnimData::GetLocatorTransform imp
This commit is contained in:
parent
5979ccaf93
commit
4d4288858b
|
@ -183,12 +183,17 @@ zeus::CTransform CAnimData::GetLocatorTransform(CSegId id, const CCharAnimTime*
|
||||||
|
|
||||||
zeus::CTransform ret;
|
zeus::CTransform ret;
|
||||||
if (!x220_31_poseCached)
|
if (!x220_31_poseCached)
|
||||||
{
|
|
||||||
const_cast<CAnimData*>(this)->RecalcPoseBuilder(time);
|
const_cast<CAnimData*>(this)->RecalcPoseBuilder(time);
|
||||||
const_cast<CAnimData*>(this)->x220_31_poseCached = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (!x220_31_poseCached)
|
||||||
x2fc_poseBuilder.BuildTransform(id, ret);
|
x2fc_poseBuilder.BuildTransform(id, ret);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
zeus::CMatrix3f rot = x224_pose.GetRotation(id);
|
||||||
|
zeus::CVector3f offset = x224_pose.GetOffset(id);
|
||||||
|
ret.setRotation(rot);
|
||||||
|
ret.origin = offset;
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue