diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-11-08 19:05:10 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-11-09 12:19:51 +0300 |
commit | 04b4ec78898b53dab7ad898736a883353a3eaaed (patch) | |
tree | 60a1036c215d865d2fa1e885bd0ab56c78ce5b12 /source/blender/editors/physics | |
parent | 486d1e85102f738bc5933d8e241267c390865393 (diff) |
Fix T92318: adding layers (UVs, ...) doesn't notify about limit
When adding certain customdata layers (namely UVs, vertex colors and
sculpt vertex colors), the user does not get notified the specific limit
has been hit (blender just silently does nothing).
Now inform the user [decided to not do this in poll() since it could get
messy once operators are extended to operate on all selected objects, so
left this as a visible error in execute() -- or from python].
Maniphest Tasks: T92318
Differential Revision: https://developer.blender.org/D13147
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 56f32ff603c..be6b44f87bf 100644 --- a/source/blender/editors/physics/dynamicpaint_ops.c +++ b/source/blender/editors/physics/dynamicpaint_ops.c @@ -246,7 +246,7 @@ static int output_toggle_exec(bContext *C, wmOperator *op) /* Vertex Color Layer */ if (surface->type == MOD_DPAINT_SURFACE_T_PAINT) { if (!exists) { - ED_mesh_color_add(ob->data, name, true, true); + ED_mesh_color_add(ob->data, name, true, true, op->reports); } else { ED_mesh_color_remove_named(ob->data, name); |