Pull Request: https://projects.blender.org/blender/blender/pulls/133734
BKE_material.h
discrete
RNA_pointer_create