Nevermind, I see your code here:
this.entity.addComponent("model"),
this.entity.model.model = d,
this.entity.model.meshInstances[0] = this.Mymaterial.resource,
product = this.entity;
var u = this.entity.model.meshInstances[0].material;
u.opacity = 1,
u.diffuse.fromString("#000000"),
u.update()
This line is odd
this.entity.model.meshInstances[0] = this.Mymaterial.resource
Why is app setting a material to a meshInstance?