jayanam / bl_ui_widgets

UI Widgets for Blender 2.8
GNU General Public License v3.0
150 stars 38 forks source link

Images turn black if the interaction doesn't happen for some time #14

Closed vilemduha closed 3 years ago

vilemduha commented 3 years ago

The images drawn still need glTouch() or some other solution to not turn black. An issue was posted for it but was closed.

jayanam commented 3 years ago

Ok, can reproduce, was waiting some minutes:-)

jayanam commented 3 years ago

Should be fixed now, added the batch creation into draw_image method

vilemduha commented 3 years ago

This issue is still happening. I fixed it by adding:

 # send image to gpu if it isn't there already
if self.__image.gl_load():
    raise Exception()

to line 148 in bl_ui_button.py