Skip to content

Commit

Permalink
Fix the issue where UV values are not updated during texture switching (
Browse files Browse the repository at this point in the history
  • Loading branch information
smallmain authored Dec 27, 2024
1 parent f462375 commit bd8a834
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cocos2d/core/components/CCSprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ var Sprite = cc.Class({
let textureImpl = texture && texture.getImpl();
if (material.getProperty('texture') !== textureImpl) {
material.setProperty('texture', texture);
this.setVertsDirty();
}
}

Expand Down

0 comments on commit bd8a834

Please sign in to comment.