[Bf-blender-cvs] [796ef560b48] master: Fix `Image.gl_touch` not loading image.

Jeroen Bakker noreply at git.blender.org
Mon Jan 24 15:36:02 CET 2022


Commit: 796ef560b48cec5e22d4bb562ce695ad7a91e321
Author: Jeroen Bakker
Date:   Mon Jan 24 15:32:04 2022 +0100
Branches: master
https://developer.blender.org/rB796ef560b48cec5e22d4bb562ce695ad7a91e321

Fix `Image.gl_touch` not loading image.

Same fix as for {rBc09f61a9157ddee0e186db52fb7ac0f4cdae09da}

===================================================================

M	source/blender/makesrna/intern/rna_image_api.c

===================================================================

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);
   }



More information about the Bf-blender-cvs mailing list