Skip to content
Snippets Groups Projects
Commit 7e7c8bd9 authored by Shon Ferguson's avatar Shon Ferguson
Browse files

We can't have functions on compounds as all files for them are generated. ...

We can't have functions on compounds as all files for them are generated.  Removed CalcNumTriangles so Niflib programs will link.
parent c3c157a0
No related branches found
No related tags found
No related merge requests found
......@@ -26,10 +26,6 @@ struct NIFLIB_API SkinPartition {
* Number of triangles in this submesh.
*/
mutable ushort numTriangles;
/*!
* Number of triangles in this submesh.
*/
ushort CalcNumTriangles() const;
/*!
* Number of bones influencing this submesh.
*/
......
......@@ -10789,7 +10789,7 @@ void NiSkinPartition::InternalWrite( ostream& out, map<NiObjectRef,uint> link_ma
skinPartitionBlocks[i1].numWeightsPerVertex = ushort((skinPartitionBlocks[i1].vertexWeights.size() > 0) ? skinPartitionBlocks[i1].vertexWeights[0].size() : 0);
skinPartitionBlocks[i1].numStrips = ushort(skinPartitionBlocks[i1].stripLengths.size());
skinPartitionBlocks[i1].numBones = ushort(skinPartitionBlocks[i1].bones.size());
skinPartitionBlocks[i1].numTriangles = skinPartitionBlocks[i1].CalcNumTriangles();
skinPartitionBlocks[i1].numTriangles = ushort(skinPartitionBlocks[i1].triangles.size());
skinPartitionBlocks[i1].numVertices = ushort(skinPartitionBlocks[i1].vertexMap.size());
NifStream( skinPartitionBlocks[i1].numVertices, out, version );
NifStream( skinPartitionBlocks[i1].numTriangles, out, version );
......@@ -10880,7 +10880,7 @@ std::string NiSkinPartition::InternalAsString( bool verbose ) const {
skinPartitionBlocks[i1].numWeightsPerVertex = ushort((skinPartitionBlocks[i1].vertexWeights.size() > 0) ? skinPartitionBlocks[i1].vertexWeights[0].size() : 0);
skinPartitionBlocks[i1].numStrips = ushort(skinPartitionBlocks[i1].stripLengths.size());
skinPartitionBlocks[i1].numBones = ushort(skinPartitionBlocks[i1].bones.size());
skinPartitionBlocks[i1].numTriangles = skinPartitionBlocks[i1].CalcNumTriangles();
skinPartitionBlocks[i1].numTriangles = ushort(skinPartitionBlocks[i1].triangles.size());
skinPartitionBlocks[i1].numVertices = ushort(skinPartitionBlocks[i1].vertexMap.size());
out << " Num Vertices: " << skinPartitionBlocks[i1].numVertices << endl;
out << " Num Triangles: " << skinPartitionBlocks[i1].numTriangles << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment