Add skin bank count field to HMDL metadata

This commit is contained in:
Jack Andersen 2016-09-04 12:47:09 -10:00
parent 47db8b8e84
commit 691d53304c
3 changed files with 4 additions and 1 deletions

View File

@ -40,6 +40,7 @@ HMDLBuffers BlenderConnection::DataStream::Mesh::getHMDLBuffers(bool absoluteCoo
metaOut.colorCount = colorLayerCount;
metaOut.uvCount = uvLayerCount;
metaOut.weightCount = weightVecCount;
metaOut.bankCount = skinBanks.banks.size();
/* Total all verts from all surfaces (for ibo length) */
size_t boundVerts = 0;

View File

@ -25,7 +25,8 @@ struct HMDLMeta : athena::io::DNA<athena::BigEndian>
Value<atUint32> indexCount;
Value<atUint32> colorCount;
Value<atUint32> uvCount;
Value<atUint32> weightCount;
Value<atUint16> weightCount;
Value<atUint16> bankCount;
};
}

View File

@ -100,6 +100,7 @@ struct HECLApplicationCallback : boo::IApplicationCallback
testMeta.colorCount = 0;
testMeta.uvCount = 1;
testMeta.weightCount = 0;
testMeta.bankCount = 0;
/* Binary form of meta structure */
atUint8 testMetaBuf[HECL_HMDL_META_SZ];