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:
authorDalai Felinto <dfelinto@gmail.com>2014-06-11 03:50:55 +0400
committerDalai Felinto <dfelinto@gmail.com>2014-06-11 03:51:34 +0400
commit8a90edca86d525b7114cd95198a171cbef2f158b (patch)
treedeb24f98d8a31b04cb3342fc8a45859ccff2a1cc
parenta6a38de4d6c4845274d89e37e7d8462da02db54f (diff)
Bake-API: removal of unecessary UV tests, as suggested by Campbell Barton
-rw-r--r--source/blender/editors/object/object_bake_api.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c
index 9075ca26e40..cd40262fe6b 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -302,11 +302,7 @@ static bool bake_object_check(Object *ob, ReportList *reports)
else {
Mesh *me = (Mesh *)ob->data;
- const int pidx = CustomData_get_active_layer_index(&me->pdata, CD_MTEXPOLY);
- const int lidx = CustomData_get_active_layer_index(&me->ldata, CD_MLOOPUV);
- const int fidx = CustomData_get_active_layer_index(&me->fdata, CD_MTFACE);
-
- if ((pidx == -1) && (lidx == -1) && (fidx == -1)) {
+ if (CustomData_get_active_layer_index(&me->ldata, CD_MLOOPUV)) {
BKE_reportf(reports, RPT_ERROR,
"No active UV layer found in the object \"%s\"", ob->id.name + 2);
return false;