-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the issue of update the wrapMode after changing the image type #16315
Conversation
Interface Check ReportThis pull request does not change any public interfaces ! |
…x-change-wrapMode
@@ -413,7 +413,9 @@ const Elements = { | |||
// 根据 wrapModeSelect 组合值同步相应的 wrapModeS/wrapModeT 到 userData | |||
const value = event.target.value; | |||
// 临时记录用户的修改配置 | |||
Editor.Profile.setConfig('inspector', `${this.meta.uuid}.texture.wrapMode`, value, 'default'); | |||
this.metaList && this.metaList.forEach((meta) => { | |||
Editor.Profile.setConfig('inspector', `${meta.uuid}.texture.wrapMode`, value, 'default'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this data for the interface temporary? Would it be better to put it in 'Temp'?
这个数据是界面用的临时数据吧?放到 Temp 会不会更好?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Temporary data is stored in the 'default' and is only valid for the current session. It won't be remembered next time. So, there is no need to store it in 'temp' for long-term recording.
Re: #
https://github.com/cocos/3d-tasks/issues/15635
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: