What happened to 'bpy.utils.previews' in 2.81?

Hi Blender Community,

All is in the title.

Some of my scripts are using custom icons. However, since the 2.81 Alpha, these scripts automatically crash because of the lack of this Class in the API.

So, here is my question. What happened to ‘bpy.utils.previews’? Has this Class been removed or moved? If so, what is the new way to add custom icons to our scripts?

Thanks.

Hi,

I just noticed that I forgot to answer my own question for those who have the same problem.

In fact, the ‘Preview’ class is still in the API, but you must now call it before using it.
So, you just have to add the line ‘import bpy.utils.previews’ at the top of your script file.