From 796ef560b48cec5e22d4bb562ce695ad7a91e321 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Mon, 24 Jan 2022 15:32:04 +0100 Subject: Fix `Image.gl_touch` not loading image. Same fix as for {rBc09f61a9157ddee0e186db52fb7ac0f4cdae09da} --- source/blender/makesrna/intern/rna_image_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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); } -- cgit v1.2.3