1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-23 20:02:32 +08:00

fix setTexture

This commit is contained in:
Kevin Levron 2021-05-05 09:47:54 +02:00
parent 9baccbd1d5
commit 2029497e11

View File

@ -61,7 +61,7 @@ const BaseMaterial = defineComponent({
material.needsUpdate = needsUpdate
},
setTexture(texture: Texture | null, key = 'map') {
this.setProp(this, key, texture, true)
this.setProp(this.material, key, texture, true)
},
},
render() {