System Information
Kubuntu 16.04, GeForce 8800 GTS 512
Blender Version
Broken: 2.77a and rB8bb69b61579113a
Short description of error
When drawing a button or label with a custom icon on a header or addons panel, the icon isn't shown. Only after forcing a redraw (for example by moving the mouse over the UI element) the icon gets drawn.
Exact steps for others to reproduce the error
- Place the attached blend file and icon in the same folder.
- Open the blend file.
- Scroll the text editor header such that there is plenty of space on the right-hand side of the header. This is necessary so that you can see the button that will appear here, directly on the first draw.
- Run the script.
- See the "Render" button without cloud icon.
- Move the mouse around over the button.
- See the "Render" button appear.
If you go to the properties editor, objects tab, the script also registers a button there, in a custom panel. You can also see that it is drawn without the icon first, but is redrawn when the icon is loaded. My bet is that this redraw trigger doesn't happen for other areas.