diff options
Diffstat (limited to 'source/blender/editors/object/object_bake_api.c')
-rw-r--r-- | source/blender/editors/object/object_bake_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c index 44f05600d7d..fec87fbfa95 100644 --- a/source/blender/editors/object/object_bake_api.c +++ b/source/blender/editors/object/object_bake_api.c @@ -442,7 +442,7 @@ static bool bake_object_check(ViewLayer *view_layer, if (target == R_BAKE_TARGET_VERTEX_COLORS) { MPropCol *mcol = CustomData_get_layer(&me->vdata, CD_PROP_COLOR); - const bool mcol_valid = (mcol != NULL && U.experimental.use_sculpt_vertex_colors); + const bool mcol_valid = (mcol != NULL); MLoopCol *mloopcol = CustomData_get_layer(&me->ldata, CD_MLOOPCOL); if (mloopcol == NULL && !mcol_valid) { BKE_reportf(reports, @@ -926,7 +926,7 @@ static bool bake_targets_init_vertex_colors(BakeTargets *targets, Object *ob, Re Mesh *me = ob->data; MPropCol *mcol = CustomData_get_layer(&me->vdata, CD_PROP_COLOR); - const bool mcol_valid = (mcol != NULL && U.experimental.use_sculpt_vertex_colors); + const bool mcol_valid = (mcol != NULL); MLoopCol *mloopcol = CustomData_get_layer(&me->ldata, CD_MLOOPCOL); if (mloopcol == NULL && !mcol_valid) { BKE_report(reports, RPT_ERROR, "No vertex colors layer found to bake to"); @@ -1080,7 +1080,7 @@ static bool bake_targets_output_vertex_colors(BakeTargets *targets, Object *ob) { Mesh *me = ob->data; MPropCol *mcol = CustomData_get_layer(&me->vdata, CD_PROP_COLOR); - const bool mcol_valid = (mcol != NULL && U.experimental.use_sculpt_vertex_colors); + const bool mcol_valid = (mcol != NULL); MLoopCol *mloopcol = CustomData_get_layer(&me->ldata, CD_MLOOPCOL); const int channels_num = targets->channels_num; const float *result = targets->result; |