回滚更新

This commit is contained in:
陈梓阳 2025-05-30 14:36:01 +08:00
parent d50ed25d54
commit 9335c16763
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "material-editor", "name": "material-editor",
"private": true, "private": true,
"version": "1.0.12", "version": "1.0.13",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@ -166,13 +166,11 @@ const materialInfo = reactive({
onMounted(async () => { onMounted(async () => {
await 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) => {