diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-22 00:15:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-22 00:15:39 +0400 |
commit | fa1cd9ce9b841510588ff899c2fd8be5a7293ae0 (patch) | |
tree | 57e756272e22ff8ab381f8531ae1f68ea9267af7 /source/blender/editors/physics | |
parent | 21c55d5304f5e1093d0f8e96cec5bd1014b08c16 (diff) |
python api: add functionality to remove vertex color layers.
note: that this intentionally removes check to exit vpaint mode when a vertex color layer is removed,
since being in vertex-paint mode without a vertex color layer is supported.
also minor change to drawing camera limits while picking from previous commit.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/dynamicpaint_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/physics/dynamicpaint_ops.c b/source/blender/editors/physics/dynamicpaint_ops.c index 48316cfccb7..73d3c02c9f1 100644 --- a/source/blender/editors/physics/dynamicpaint_ops.c +++ b/source/blender/editors/physics/dynamicpaint_ops.c @@ -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) { |