mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-09-24 08:42:50 +00:00
[engine] Fix the issue where UV values are not updated during texture switching
This commit is contained in:
@@ -495,6 +495,7 @@ var Sprite = cc.Class({
|
||||
const textureImpl = texture && texture.getImpl();
|
||||
if (material.getProperty('texture') !== textureImpl) {
|
||||
material.setProperty('texture', texture);
|
||||
this.setVertsDirty();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user