python api: add functionality to remove vertex color layers.
[blender.git] / source / blender / editors / physics / dynamicpaint_ops.c
index 48316cfccb74344ee29f88b4f7427a8d8e9d3612..73d3c02c9f192e86e0f334ecfb7a5fb1b4ef7b45 100644 (file)
@@ -225,7 +225,7 @@ static int output_toggle_exec(bContext *C, wmOperator *op)
                        if (!exists)
                                ED_mesh_color_add(C, scene, ob, ob->data, name, 1);
                        else 
-                               ED_mesh_color_remove_named(C, ob, ob->data, name);
+                               ED_mesh_color_remove_named(ob->data, name);
                }
                /* Vertex Weight Layer */
                else if (surface->type == MOD_DPAINT_SURFACE_T_WEIGHT) {