Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_image_api.c
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | if (scene == NULL) { | ||||
| scene = CTX_data_scene(C); | scene = CTX_data_scene(C); | ||||
| } | } | ||||
| if (scene) { | if (scene) { | ||||
| ImageUser iuser = {NULL}; | ImageUser iuser = {NULL}; | ||||
| void *lock; | void *lock; | ||||
| iuser.scene = scene; | iuser.scene = scene; | ||||
| iuser.ok = 1; | |||||
| ibuf = BKE_image_acquire_ibuf(image, &iuser, &lock); | ibuf = BKE_image_acquire_ibuf(image, &iuser, &lock); | ||||
| if (ibuf == NULL) { | if (ibuf == NULL) { | ||||
| BKE_report(reports, RPT_ERROR, "Could not acquire buffer from image"); | BKE_report(reports, RPT_ERROR, "Could not acquire buffer from image"); | ||||
| } | } | ||||
| else { | else { | ||||
| ImBuf *write_ibuf; | ImBuf *write_ibuf; | ||||
| ▲ Show 20 Lines • Show All 294 Lines • Show Last 20 Lines | |||||