Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2006-12-23 20:07:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2006-12-23 20:07:02 +0300
commitbef18061ec87ece6d1fec88e9fdffcb854eefb13 (patch)
tree2be82ed673a2074cfbe9c87b5718943ac0208e47 /source/blender/python/api2_2x/NMesh.c
parentd66f828c9bee8177fbd3b0155a48dacbb450189b (diff)
Select Grouped editdata- minor fix in the menu.
Updated Python Mesh API to support UV and Color layers with names. Similar to vertex group's renamed a function in customdata.c CustomData_free_layers -> CustomData_free_layers_active and made CustomData_free_layers accept an index, this is needed so python could free layers that arnt active.
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.c')
-rw-r--r--source/blender/python/api2_2x/NMesh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c
index 4551d5d7d0c..5aa0eec5379 100644
--- a/source/blender/python/api2_2x/NMesh.c
+++ b/source/blender/python/api2_2x/NMesh.c
@@ -2914,7 +2914,7 @@ static void fill_medge_from_nmesh(Mesh * mesh, BPy_NMesh * nmesh)
tot_valid_faces_edges=tot_faces_edges;
mesh->medge= CustomData_set_layer(&mesh->edata, CD_MEDGE, NULL);
- CustomData_free_layer(&mesh->edata, CD_MEDGE, mesh->totedge);
+ CustomData_free_layer_active(&mesh->edata, CD_MEDGE, mesh->totedge);
mesh->totedge = 0;
/* Flag each edge in faces_edges that is already in nmesh->edges list.
@@ -3004,7 +3004,7 @@ static void check_dverts(Mesh *me, int old_totvert)
if ((totvert == old_totvert) || (!me->dvert)) return;
/* if all verts have been deleted, free old dverts */
else if (totvert == 0) {
- CustomData_free_layer( &me->vdata, CD_MDEFORMVERT, old_totvert );
+ CustomData_free_layer_active( &me->vdata, CD_MDEFORMVERT, old_totvert );
me->dvert= NULL;
}
else {