Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/voxeldata.c
| Context not available. | |||||
| #include "BLF_translation.h" | #include "BLF_translation.h" | ||||
| #include "IMB_imbuf.h" | #include "IMB_imbuf.h" | ||||
| #include "IMB_imbuf_types.h" | #include "DNA_imbuf_types.h" | ||||
| #include "BKE_cloth.h" | #include "BKE_cloth.h" | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| Context not available. | |||||
| /* find the first valid ibuf and use it to initialize the resolution of the data set */ | /* find the first valid ibuf and use it to initialize the resolution of the data set */ | ||||
| /* need to do this in advance so we know how much memory to allocate */ | /* need to do this in advance so we know how much memory to allocate */ | ||||
| ibuf = BKE_image_acquire_ibuf(ima, &iuser, NULL); | ibuf = BKE_image_acquire_ibuf(ima, &iuser, NULL, IMA_IBUF_IMA); | ||||
| while (!ibuf && (iuser.framenr < iuser.frames)) { | while (!ibuf && (iuser.framenr < iuser.frames)) { | ||||
| iuser.framenr++; | iuser.framenr++; | ||||
| ibuf = BKE_image_acquire_ibuf(ima, &iuser, NULL); | ibuf = BKE_image_acquire_ibuf(ima, &iuser, NULL, IMA_IBUF_IMA); | ||||
| } | } | ||||
| if (!ibuf) return; | if (!ibuf) return; | ||||
| if (!ibuf->rect_float) IMB_float_from_rect(ibuf); | if (!ibuf->rect_float) IMB_float_from_rect(ibuf); | ||||
| Context not available. | |||||
| if (z > 0) { | if (z > 0) { | ||||
| iuser.framenr++; | iuser.framenr++; | ||||
| BKE_image_release_ibuf(ima, ibuf, NULL); | BKE_image_release_ibuf(ima, ibuf, NULL); | ||||
| ibuf = BKE_image_acquire_ibuf(ima, &iuser, NULL); | ibuf = BKE_image_acquire_ibuf(ima, &iuser, NULL, IMA_IBUF_IMA); | ||||
| if (!ibuf) break; | if (!ibuf) break; | ||||
| if (!ibuf->rect_float) IMB_float_from_rect(ibuf); | if (!ibuf->rect_float) IMB_float_from_rect(ibuf); | ||||
| } | } | ||||
| Context not available. | |||||