diff --git a/editor/inspector/assets/image.js b/editor/inspector/assets/image.js index ed84b8f5fb7..1c9f97cef8e 100644 --- a/editor/inspector/assets/image.js +++ b/editor/inspector/assets/image.js @@ -310,7 +310,6 @@ exports.methods = { async changeSubMetaWithType() { let dirty = false; - // 在提交之前处理一些子资源 meta 联动修改 // any -> texture : texture.wrapMode -> Repeat // any -> sprite : texture.wrapMode -> Clamp if (['sprite-frame', 'texture'].includes(this.meta.userData.type)) { @@ -321,7 +320,7 @@ exports.methods = { wrapModeCache = await Editor.Profile.getConfig('inspector', `${textureUUID}.texture.wrapMode`); } if (!wrapModeCache) { - // 用户未曾修改过,切换类型需要重置默认配置 + // use default wrapMode if not changed const wrapModeName = this.meta.userData.type === 'texture' ? 'Repeat' : 'Clamp'; this.metaList.forEach((meta) => { dirty = true;