Skip to content

Commit

Permalink
ensure delta is null for custom anims
Browse files Browse the repository at this point in the history
  • Loading branch information
RektInator committed Sep 22, 2019
1 parent a96acbb commit 44fdc90
Showing 1 changed file with 4 additions and 46 deletions.
50 changes: 4 additions & 46 deletions src/IW5/Assets/XAnimParts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,52 +162,10 @@ namespace ZoneTool
}
}

//if (asset->delta)
//{
// asset->delta = reader.Single<XAnimDeltaPart>();

// if (asset->delta->trans)
// {
// asset->delta->trans = mem->ManualAlloc<XAnimPartTrans>(sizeof(XAnimPartTrans) + ((asset->framecount > 255) ? asset->delta->trans->size * 2 : asset->delta->trans->size) + 1);
// auto transData = reader.Single<XAnimPartTrans>();
// memcpy(asset->delta->trans, transData, sizeof(XAnimPartTrans));

// /*if (asset->delta->trans->size)
// {
// if (asset->framecount > 255)
// {
// dump.Array(asset->delta->trans->u.frames.indices._2, asset->delta->trans->size + 1);
// }
// else
// {
// dump.Array(asset->delta->trans->u.frames.indices._1, asset->delta->trans->size + 1);
// }*/

// if(asset->delta->trans->size)
// {
// if (asset->framecount > 255)
// {
// auto partData = reader.Array<short>();
// memcpy(asset->delta->trans->u.frames.indices._2, partData, (asset->delta->trans->size * 2) + 1);
// }
// else
// {
// auto partData = reader.Array<char>();
// memcpy(asset->delta->trans->u.frames.indices._1, partData, asset->delta->trans->size + 1);
// }
// }
// }

// if (asset->delta->quat2)
// {

// }

// if (asset->delta->quat)
// {

// }
//}
if (asset->delta)
{
asset->delta = nullptr;
}

reader.Close();

Expand Down

0 comments on commit 44fdc90

Please sign in to comment.