Image.gl_touch - routine to prevent the image to be cleared by blender cache garbage...
authorDalai Felinto <dfelinto@gmail.com>
Wed, 23 May 2012 20:19:40 +0000 (20:19 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 23 May 2012 20:19:40 +0000 (20:19 +0000)
commit5d82173a780735a0bb1d3d54e2ffae1ddb6644aa
treee927c4270f62963d5cb3928cc6b0f6e4ff7ba5cc
parent3136e8dce80bb3538290ed0aa0b778b7eeabbd20
Image.gl_touch - routine to prevent the image to be cleared by blender cache garbage collection system
* if the image is not loaded (bindcode == 0) load the image

This needs to be called often. If the image is 'cleaned' by Blender, it will not help to load it after.
[ gl_load returns the errors: GL_STACK_OVERFLOW(1283) or GL_STACK_UNDERFLOW (1284) ]

Thanks Campbell for the suggestion on how to handle this (BKE_image_tag_time)
source/blender/makesrna/intern/rna_image_api.c