修复场景初始化后纹理未更新的问题
This commit is contained in:
parent
696e8b294e
commit
d50ed25d54
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user