From 44fdc90a03ee29dfa4d030a259f906d1e548a9c8 Mon Sep 17 00:00:00 2001 From: RektInator Date: Sun, 22 Sep 2019 19:54:24 +0200 Subject: [PATCH] ensure delta is null for custom anims --- src/IW5/Assets/XAnimParts.cpp | 50 +++-------------------------------- 1 file changed, 4 insertions(+), 46 deletions(-) diff --git a/src/IW5/Assets/XAnimParts.cpp b/src/IW5/Assets/XAnimParts.cpp index 0111363..29f6daf 100644 --- a/src/IW5/Assets/XAnimParts.cpp +++ b/src/IW5/Assets/XAnimParts.cpp @@ -162,52 +162,10 @@ namespace ZoneTool } } - //if (asset->delta) - //{ - // asset->delta = reader.Single(); - - // if (asset->delta->trans) - // { - // asset->delta->trans = mem->ManualAlloc(sizeof(XAnimPartTrans) + ((asset->framecount > 255) ? asset->delta->trans->size * 2 : asset->delta->trans->size) + 1); - // auto transData = reader.Single(); - // 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(); - // memcpy(asset->delta->trans->u.frames.indices._2, partData, (asset->delta->trans->size * 2) + 1); - // } - // else - // { - // auto partData = reader.Array(); - // 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();