forked from bartvdbraak/blender
for bake check polygon texface (not tessface-texface)
This commit is contained in:
parent
1cad189e32
commit
e9f93b9117
@ -944,21 +944,22 @@ static int multiresbake_check(bContext *C, wmOperator *op)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!me->mtface) {
|
if(!me->mtpoly) {
|
||||||
BKE_report(op->reports, RPT_ERROR, "Mesh should be unwrapped before multires data baking");
|
BKE_report(op->reports, RPT_ERROR, "Mesh should be unwrapped before multires data baking");
|
||||||
|
|
||||||
ok= 0;
|
ok= 0;
|
||||||
} else {
|
}
|
||||||
/* BMESH_TODO - use MPoly rather then tessface */
|
else {
|
||||||
a= me->totface;
|
a = me->totpoly;
|
||||||
while (ok && a--) {
|
while (ok && a--) {
|
||||||
Image *ima= me->mtface[a].tpage;
|
Image *ima = me->mtpoly[a].tpage;
|
||||||
|
|
||||||
if(!ima) {
|
if(!ima) {
|
||||||
BKE_report(op->reports, RPT_ERROR, "You should have active texture to use multires baker");
|
BKE_report(op->reports, RPT_ERROR, "You should have active texture to use multires baker");
|
||||||
|
|
||||||
ok= 0;
|
ok= 0;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
ImBuf *ibuf= BKE_image_get_ibuf(ima, NULL);
|
ImBuf *ibuf= BKE_image_get_ibuf(ima, NULL);
|
||||||
|
|
||||||
if(!ibuf) {
|
if(!ibuf) {
|
||||||
|
Loading…
Reference in New Issue
Block a user