Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yanOO1497 committed Sep 6, 2023
1 parent 257aafb commit f43119d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor/inspector/assets/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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;
Expand Down

0 comments on commit f43119d

Please sign in to comment.