From ddf5ef04016a5a7e61a323771a631d9c5cb607db Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 10 Jun 2014 21:36:48 -0300 Subject: correction from last commit --- source/blender/editors/object/object_bake_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c index cd40262fe6b..534ecd5a109 100644 --- a/source/blender/editors/object/object_bake_api.c +++ b/source/blender/editors/object/object_bake_api.c @@ -302,7 +302,7 @@ static bool bake_object_check(Object *ob, ReportList *reports) else { Mesh *me = (Mesh *)ob->data; - if (CustomData_get_active_layer_index(&me->ldata, CD_MLOOPUV)) { + if (CustomData_get_active_layer_index(&me->ldata, CD_MLOOPUV) == -1) { BKE_reportf(reports, RPT_ERROR, "No active UV layer found in the object \"%s\"", ob->id.name + 2); return false; -- cgit v1.2.3