diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-09 18:16:24 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-09 19:24:50 +0300 |
commit | 03a00bda2b3f6729997ddfa31dfe84cc56e7707e (patch) | |
tree | 5b6c4d7837bf10ba6ac78613b9391077c6009043 /source/blender/blenkernel/intern/paint.c | |
parent | 1e3247c0787df31c34e0fdc03c6fa11b35e55d03 (diff) |
Sculpt: Make Sculpt Vertex Colors features experimental
This disables all Sculpt Vertex Colors tools, operators, panels and rendering capabilities and puts them under the "Use Sculpt Vertex Colors" experimental option.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D8239
Diffstat (limited to 'source/blender/blenkernel/intern/paint.c')
-rw-r--r-- | source/blender/blenkernel/intern/paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index b3ab856468c..dca2022382a 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -1514,7 +1514,7 @@ static void sculpt_update_object(Depsgraph *depsgraph, /* Add a color layer if a color tool is used. */ Mesh *orig_me = BKE_object_get_original_mesh(ob); - if (need_colors) { + if (need_colors && U.experimental.use_sculpt_vertex_colors) { if (!CustomData_has_layer(&orig_me->vdata, CD_PROP_COLOR)) { CustomData_add_layer(&orig_me->vdata, CD_PROP_COLOR, CD_DEFAULT, NULL, orig_me->totvert); BKE_mesh_update_customdata_pointers(orig_me, true); |