diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-20 02:55:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-20 02:55:37 +0400 |
commit | e9f93b91177c0fe80c2bc2cbfe9cf5a9e951d604 (patch) | |
tree | 1454b72975c7ee68248f0b71594d703da88efd2f /source/blender/editors/object | |
parent | 1cad189e32708d4f9cc5b0a649d4c07f1e1c3eff (diff) |
for bake check polygon texface (not tessface-texface)
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_bake.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/editors/object/object_bake.c b/source/blender/editors/object/object_bake.c index 5f3a7cfe93b..6df8ed1155a 100644 --- a/source/blender/editors/object/object_bake.c +++ b/source/blender/editors/object/object_bake.c @@ -944,21 +944,22 @@ static int multiresbake_check(bContext *C, wmOperator *op) break; } - if(!me->mtface) { + if(!me->mtpoly) { BKE_report(op->reports, RPT_ERROR, "Mesh should be unwrapped before multires data baking"); ok= 0; - } else { - /* BMESH_TODO - use MPoly rather then tessface */ - a= me->totface; + } + else { + a = me->totpoly; while (ok && a--) { - Image *ima= me->mtface[a].tpage; + Image *ima = me->mtpoly[a].tpage; if(!ima) { BKE_report(op->reports, RPT_ERROR, "You should have active texture to use multires baker"); ok= 0; - } else { + } + else { ImBuf *ibuf= BKE_image_get_ibuf(ima, NULL); if(!ibuf) { |