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/src/buttons_editing.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/src/buttons_editing.c')
-rw-r--r--source/blender/src/buttons_editing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c
index 2fdc0ea830a..aa31056571b 100644
--- a/source/blender/src/buttons_editing.c
+++ b/source/blender/src/buttons_editing.c
@@ -693,7 +693,7 @@ static void delete_customdata_layer(void *data1, void *data2)
EM_free_data_layer(data, type);
}
else if(me) {
- CustomData_free_layer(data, type, me->totface);
+ CustomData_free_layer_active(data, type, me->totface);
mesh_update_customdata_pointers(me);
}
@@ -3669,7 +3669,7 @@ void do_meshbuts(unsigned short event)
switch(event) {
case B_DELSTICKY:
if(me->msticky) {
- CustomData_free_layer(&me->vdata, CD_MSTICKY, me->totvert);
+ CustomData_free_layer_active(&me->vdata, CD_MSTICKY, me->totvert);
me->msticky= NULL;
BIF_undo_push("Delete Sticky");
}