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