I am looking to display the material preview for cycles, eevee, and grease pencil in the 3D View Editor, but am having trouble when adding the material preview control.
I added the preview to the panel with this:
But when I change the material index the preview doesn’t update, and when i click the add material slot button Blender crashes.
I would submit this as a bug, but I assume that these controls were only intended to be placed in the properties editor.
I am familiar with Python and the Blender Python API, but haven’t had much success working with Blenders Source?
I thought this might be a good place to start. Can someone point me in the right direction on how I would resolve this issue?