Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yanOO1497 committed Sep 15, 2023
1 parent cb19c08 commit c39cd4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/inspector/assets/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const imageTypeToName = {
raw: '',
texture: 'texture',
'normal map': 'normalMap',
'sprite-frame': 'texture',
'sprite-frame': 'sprite-frame',
'texture cube': 'textureCube',
}

Expand Down Expand Up @@ -354,6 +354,10 @@ exports.methods = {
return;
}
let targetName = imageTypeToName[this.meta.userData.type];
if (targetName === 'sprite-frame') {
// change texture asset when import as sprite
targetName = 'texture';
}
const targetSubMetaKey = Editor.Utils.UUID.nameToSubId(targetName);
targetSubMetaKey && this.changeMipFilter(targetSubMetaKey);
}
Expand Down

0 comments on commit c39cd4c

Please sign in to comment.