I can not add a material from c ++

@erikdubbelboer thank you very much, that was all