修复场景初始化后纹理未更新的问题
This commit is contained in:
parent
696e8b294e
commit
d50ed25d54
@ -164,13 +164,15 @@ const materialInfo = reactive({
|
|||||||
inputText:'',
|
inputText:'',
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(async () => {
|
||||||
scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]);
|
await scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]);
|
||||||
|
UpdateTexture();
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(() => props.textureSrcList, async (val) => {
|
watch(() => props.textureSrcList, async (val) => {
|
||||||
_textureSrc.value = val;
|
_textureSrc.value = val;
|
||||||
await scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]);
|
await scene.ChangeTextureFromUrlAsync(_textureSrc.value[0]);
|
||||||
|
UpdateTexture();
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(textureAdjustment, async (val) => {
|
watch(textureAdjustment, async (val) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user