Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2021-01-20 20:18:38 +0300
committerSebastian Parborg <darkdefende@gmail.com>2021-01-20 20:18:38 +0300
commitc07c110467ca3c41fcebf7b9062a96b0fb1a3eef (patch)
treeb94cb128a7a27ad53c28553ed96fc3f8eacd4aab /source/blender/editors/object
parente12eb89f22c6ee17971195e0221a8e8b8ee3db8a (diff)
parentb33d839162b6d4b8b85937eb095b661ac93cbddd (diff)
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_bake_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c
index 8a63ab22b36..113a0395e8c 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -441,6 +441,12 @@ static bool bake_object_check(ViewLayer *view_layer,
}
Mesh *me = (Mesh *)ob->data;
+
+ if (me->totpoly == 0) {
+ BKE_reportf(reports, RPT_ERROR, "No faces found in the object \"%s\"", ob->id.name + 2);
+ return false;
+ }
+
if (target == R_BAKE_TARGET_VERTEX_COLORS) {
MPropCol *mcol = CustomData_get_layer(&me->vdata, CD_PROP_COLOR);
MLoopCol *mloopcol = CustomData_get_layer(&me->ldata, CD_MLOOPCOL);