System Information
Windows 7
Blender Version
2.77.a abf6f08
Short description of error
I am trying to use the preview functionality for textuers and images and display those icons via an enum property. I loop over all textures in bpy.data and generate an entry for the enum property. Icon for the enum property is set by the IconID I get from bpy.data.textures["tex"].preview.icon_id.
When I now generate a new texture, the icon gets also generated and displayed. The problem now starts when I when I reload the blend. The icons are not generated anymore. And I get an error in the console that the given IconID with its corresponding icon is not found. Is there a way to trigger the generation of an icon? Also Icons are not displayed by the template_icon_view.
Exact steps for others to reproduce the error
Just open the blend file. Generate some textures. Icons get generated. Save blend file and then reopen. Icons are missing.