Skip to content

Commit 6958464

Browse files
committed
Merge pull request #3222 from VisualSJ/develop-3.10
Fixed a bug that scale9Sprite position error
2 parents d6f8459 + 6370b15 commit 6958464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ccui/base-classes/UIScale9SpriteWebGLRenderCmd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
proto.setDirtyFlag = function (dirtyFlag, child) {
106106
// ignore cache dirty, it's only for canvas
107107
if (dirtyFlag === cc.Node._dirtyFlags.cacheDirty)
108-
return;
108+
dirtyFlag = cc.Node._dirtyFlags.transformDirty;
109109
cc.Node.RenderCmd.prototype.setDirtyFlag.call(this, dirtyFlag, child);
110110
};
111111

0 commit comments

Comments
 (0)