Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/envmap.c
| Context not available. | |||||
| #include "BLF_translation.h" | #include "BLF_translation.h" | ||||
| #include "IMB_imbuf_types.h" | #include "DNA_imbuf_types.h" | ||||
| #include "IMB_imbuf.h" /* for rectcpy */ | #include "IMB_imbuf.h" /* for rectcpy */ | ||||
| #include "DNA_group_types.h" | #include "DNA_group_types.h" | ||||
| Context not available. | |||||
| env->ima = tex->ima; | env->ima = tex->ima; | ||||
| if (env->ima && env->ima->ok) { | if (env->ima && env->ima->ok) { | ||||
| if (env->cube[1] == NULL) { | if (env->cube[1] == NULL) { | ||||
| ImBuf *ibuf_ima = BKE_image_pool_acquire_ibuf(env->ima, NULL, pool); | ImBuf *ibuf_ima = BKE_image_pool_acquire_ibuf(env->ima, NULL, pool, IMA_IBUF_IMA); | ||||
| if (ibuf_ima) | if (ibuf_ima) | ||||
| envmap_split_ima(env, ibuf_ima); | envmap_split_ima(env, ibuf_ima); | ||||
| else | else | ||||
| Context not available. | |||||