Skip to content

Commit

Permalink
fix change texture wrap mode (#16529)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanOO1497 authored Nov 23, 2023
1 parent f5ca599 commit 6deb492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/inspector/assets/texture/texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ const Elements = {

panel.$.wrapModeSelect.addEventListener('change', (event) => {
// 根据 wrapModeSelect 组合值同步相应的 wrapModeS/wrapModeT 到 userData
const value = event.target.value;
// 临时记录用户的修改配置
Editor.Profile.setTemp('inspector', `${this.meta.uuid}.texture.wrapMode`, value, 'default');
if (ModeMap.wrap[value]) {
Expand Down Expand Up @@ -697,7 +698,7 @@ exports.methods = {
},
};

exports.ready = function() {
exports.ready = function () {
for (const prop in Elements) {
const element = Elements[prop];
if (element.ready) {
Expand Down

0 comments on commit 6deb492

Please sign in to comment.