mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 03:38:29 +00:00
[engine] Fix the issue where UV values are not updated during texture switching
This commit is contained in:
parent
276479cba3
commit
a4ec2b24dd
@ -495,6 +495,7 @@ var Sprite = cc.Class({
|
|||||||
const textureImpl = texture && texture.getImpl();
|
const textureImpl = texture && texture.getImpl();
|
||||||
if (material.getProperty('texture') !== textureImpl) {
|
if (material.getProperty('texture') !== textureImpl) {
|
||||||
material.setProperty('texture', texture);
|
material.setProperty('texture', texture);
|
||||||
|
this.setVertsDirty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user