Fix for fix in revision 32122, viewer node wasn't working anymore in some cases.
This commit is contained in:
@@ -2139,10 +2139,15 @@ ImBuf *BKE_image_acquire_ibuf(Image *ima, ImageUser *iuser, void **lock_r)
|
|||||||
BLI_lock_thread(LOCK_VIEWER);
|
BLI_lock_thread(LOCK_VIEWER);
|
||||||
*lock_r= ima;
|
*lock_r= ima;
|
||||||
|
|
||||||
/* Composite Viewer, all handled in compositor */
|
frame= iuser?iuser->framenr:0;
|
||||||
/* fake ibuf, will be filled in compositor */
|
ibuf= image_get_ibuf(ima, 0, frame);
|
||||||
ibuf= IMB_allocImBuf(256, 256, 32, IB_rect, 0);
|
|
||||||
image_assign_ibuf(ima, ibuf, 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user