I am building a plugin to export/import models. For default material, I always get wrong result below:
The model has only one image material. The importing steps:
- Create the material.
- Create the instance.
- instance.material = [the material]
Did I miss something in the steps? What is the correct practice to apply a default material?