Fix for fix in revision 32122, viewer node wasn't working anymore in some cases.

This commit is contained in:
Brecht Van Lommel
2010-09-25 22:21:35 +00:00
parent 0714c8af56
commit 8babc5056f

View File

@@ -2139,10 +2139,15 @@ ImBuf *BKE_image_acquire_ibuf(Image *ima, ImageUser *iuser, void **lock_r)
BLI_lock_thread(LOCK_VIEWER);
*lock_r= ima;
/* Composite Viewer, all handled in compositor */
/* fake ibuf, will be filled in compositor */
ibuf= IMB_allocImBuf(256, 256, 32, IB_rect, 0);
image_assign_ibuf(ima, ibuf, 0, frame);
frame= iuser?iuser->framenr:0;
ibuf= image_get_ibuf(ima, 0, frame);
if(!ibuf) {
/* Composite Viewer, all handled in compositor */
/* fake ibuf, will be filled in compositor */
ibuf= IMB_allocImBuf(256, 256, 32, IB_rect, 0);
image_assign_ibuf(ima, ibuf, 0, frame);
}
}
}
}