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:
@@ -810,7 +810,7 @@ void EM_free_data_layer(CustomData *data, int type)
|
||||
|
||||
olddata= *data;
|
||||
olddata.layers= (olddata.layers)? MEM_dupallocN(olddata.layers): NULL;
|
||||
CustomData_free_layer(data, type, 0);
|
||||
CustomData_free_layer_active(data, type, 0);
|
||||
|
||||
update_data_blocks(&olddata, data);
|
||||
if (olddata.layers) MEM_freeN(olddata.layers);
|
||||
|
||||
Reference in New Issue
Block a user