diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-01-24 17:32:04 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-01-24 17:32:04 +0300 |
commit | 796ef560b48cec5e22d4bb562ce695ad7a91e321 (patch) | |
tree | 871d845165d3a86547ef5a4c8e8567408b43e169 | |
parent | 578baf95e0ec1e3e6c12eb286cfc04f6fa5ec2f6 (diff) |
Fix `Image.gl_touch` not loading image.
Same fix as for {rBc09f61a9157ddee0e186db52fb7ac0f4cdae09da}
-rw-r--r-- | source/blender/makesrna/intern/rna_image_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_image_api.c b/source/blender/makesrna/intern/rna_image_api.c index 7d2697c8770..1c04805be8b 100644 --- a/source/blender/makesrna/intern/rna_image_api.c +++ b/source/blender/makesrna/intern/rna_image_api.c @@ -243,7 +243,7 @@ static int rna_Image_gl_touch( BKE_image_tag_time(image); - if (image->gputexture[TEXTARGET_2D][0] == NULL) { + if (image->gputexture[TEXTARGET_2D][0][IMA_TEXTURE_RESOLUTION_FULL] == NULL) { error = rna_Image_gl_load(image, reports, frame, layer_index, pass_index); } |