[Bf-blender-cvs] [8a90edc] master: Bake-API: removal of unecessary UV tests, as suggested by Campbell Barton
Dalai Felinto
noreply at git.blender.org
Wed Jun 11 01:51:45 CEST 2014
Commit: 8a90edca86d525b7114cd95198a171cbef2f158b
Author: Dalai Felinto
Date: Tue Jun 10 20:50:55 2014 -0300
https://developer.blender.org/rB8a90edca86d525b7114cd95198a171cbef2f158b
Bake-API: removal of unecessary UV tests, as suggested by Campbell Barton
===================================================================
M source/blender/editors/object/object_bake_api.c
===================================================================
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c
index 9075ca2..cd40262 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;
More information about the Bf-blender-cvs
mailing list