Cleanup: Remove unused "_ex" version of function
This commit is contained in:
parent
79032a8513
commit
57f6aa4d83
|
@ -227,15 +227,6 @@ void DM_init(DerivedMesh *dm,
|
|||
* Utility function to initialize a DerivedMesh for the desired number
|
||||
* of vertices, edges and faces, with a layer setup copied from source
|
||||
*/
|
||||
void DM_from_template_ex(DerivedMesh *dm,
|
||||
DerivedMesh *source,
|
||||
DerivedMeshType type,
|
||||
int numVerts,
|
||||
int numEdges,
|
||||
int numTessFaces,
|
||||
int numLoops,
|
||||
int numPolys,
|
||||
const struct CustomData_MeshMasks *mask);
|
||||
void DM_from_template(DerivedMesh *dm,
|
||||
DerivedMesh *source,
|
||||
DerivedMeshType type,
|
||||
|
|
|
@ -284,16 +284,16 @@ void DM_init(DerivedMesh *dm,
|
|||
copy_vn_i(dm->polyData.typemap, CD_NUMTYPES, -1);
|
||||
}
|
||||
|
||||
void DM_from_template_ex(DerivedMesh *dm,
|
||||
DerivedMesh *source,
|
||||
DerivedMeshType type,
|
||||
int numVerts,
|
||||
int numEdges,
|
||||
int numTessFaces,
|
||||
int numLoops,
|
||||
int numPolys,
|
||||
const CustomData_MeshMasks *mask)
|
||||
void DM_from_template(DerivedMesh *dm,
|
||||
DerivedMesh *source,
|
||||
DerivedMeshType type,
|
||||
int numVerts,
|
||||
int numEdges,
|
||||
int numTessFaces,
|
||||
int numLoops,
|
||||
int numPolys)
|
||||
{
|
||||
const CustomData_MeshMasks *mask = &CD_MASK_DERIVEDMESH;
|
||||
CustomData_copy(&source->vertData, &dm->vertData, mask->vmask, CD_CALLOC, numVerts);
|
||||
CustomData_copy(&source->edgeData, &dm->edgeData, mask->emask, CD_CALLOC, numEdges);
|
||||
CustomData_copy(&source->faceData, &dm->faceData, mask->fmask, CD_CALLOC, numTessFaces);
|
||||
|
@ -313,25 +313,6 @@ void DM_from_template_ex(DerivedMesh *dm,
|
|||
|
||||
dm->needsFree = 1;
|
||||
}
|
||||
void DM_from_template(DerivedMesh *dm,
|
||||
DerivedMesh *source,
|
||||
DerivedMeshType type,
|
||||
int numVerts,
|
||||
int numEdges,
|
||||
int numTessFaces,
|
||||
int numLoops,
|
||||
int numPolys)
|
||||
{
|
||||
DM_from_template_ex(dm,
|
||||
source,
|
||||
type,
|
||||
numVerts,
|
||||
numEdges,
|
||||
numTessFaces,
|
||||
numLoops,
|
||||
numPolys,
|
||||
&CD_MASK_DERIVEDMESH);
|
||||
}
|
||||
|
||||
bool DM_release(DerivedMesh *dm)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue