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.
This commit is contained in:
Campbell Barton
2006-12-23 17:07:02 +00:00
parent d66f828c9b
commit bef18061ec
13 changed files with 221 additions and 105 deletions

View File

@@ -4081,7 +4081,7 @@ void RE_make_sticky(void)
me= ob->data;
mvert= me->mvert;
if(me->msticky)
CustomData_free_layer(&me->vdata, CD_MSTICKY, me->totvert);
CustomData_free_layer_active(&me->vdata, CD_MSTICKY, me->totvert);
me->msticky= CustomData_add_layer(&me->vdata, CD_MSTICKY,
CD_CALLOC, NULL, me->totvert);