diff --git a/src/components/MaterialAdjuster.vue b/src/components/MaterialAdjuster.vue index f98a00d..c556f43 100644 --- a/src/components/MaterialAdjuster.vue +++ b/src/components/MaterialAdjuster.vue @@ -164,13 +164,15 @@ const materialInfo = reactive({ inputText:'', }); -onMounted(() => { - scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]); +onMounted(async () => { + await scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]); + UpdateTexture(); }) watch(() => props.textureSrcList, async (val) => { _textureSrc.value = val; await scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]); + UpdateTexture(); }); watch(textureAdjustment, async (val) => {