RNA: Image API: Fix error in NULL check in rna_Image_gl_touch
This check was always returning true.
This commit is contained in:
parent
5f46a0fbce
commit
c09f61a915
Notes:
blender-bot
2023-12-22 20:14:11 +01:00
Referenced by commit 796ef560b4
, Fix `Image.gl_touch` not loading image.
|
@ -237,7 +237,7 @@ static int rna_Image_gl_touch(Image *image, ReportList *reports, int frame)
|
|||
|
||||
BKE_image_tag_time(image);
|
||||
|
||||
if (image->gputexture[TEXTARGET_2D] == NULL) {
|
||||
if (image->gputexture[TEXTARGET_2D][0] == NULL) {
|
||||
error = rna_Image_gl_load(image, reports, frame);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue