|
|
@ -305,17 +305,16 @@ namespace Nif
|
|
|
|
void NiMultiTargetTransformController::read(NIFStream* nif)
|
|
|
|
void NiMultiTargetTransformController::read(NIFStream* nif)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
NiInterpController::read(nif);
|
|
|
|
NiInterpController::read(nif);
|
|
|
|
size_t numTargets = nif->getUShort();
|
|
|
|
|
|
|
|
std::vector<NiAVObjectPtr> targets;
|
|
|
|
mExtraTargets.resize(nif->get<uint16_t>());
|
|
|
|
targets.resize(numTargets);
|
|
|
|
for (NiAVObjectPtr& extraTarget : mExtraTargets)
|
|
|
|
for (size_t i = 0; i < targets.size(); i++)
|
|
|
|
extraTarget.read(nif);
|
|
|
|
targets[i].read(nif);
|
|
|
|
|
|
|
|
mExtraTargets = targets;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void NiMultiTargetTransformController::post(Reader& nif)
|
|
|
|
void NiMultiTargetTransformController::post(Reader& nif)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
NiInterpController::post(nif);
|
|
|
|
NiInterpController::post(nif);
|
|
|
|
|
|
|
|
|
|
|
|
postRecordList(nif, mExtraTargets);
|
|
|
|
postRecordList(nif, mExtraTargets);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|