1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +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 material.needsUpdate = needsUpdate
}, },
setTexture(texture: Texture | null, key = 'map') { setTexture(texture: Texture | null, key = 'map') {
this.setProp(this, key, texture, true) this.setProp(this.material, key, texture, true)
}, },
}, },
render() { render() {