From 2029497e112778d19ec8f79a65ee82d4ea29f8d2 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Wed, 5 May 2021 09:47:54 +0200 Subject: [PATCH] fix setTexture --- src/materials/Material.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/materials/Material.ts b/src/materials/Material.ts index f2270f3..5e15b2b 100644 --- a/src/materials/Material.ts +++ b/src/materials/Material.ts @@ -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() {