File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -2796,10 +2796,8 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
2796
2796
}
2797
2797
2798
2798
// adjust anchorPoint
2799
- if ( ! this . _flippedX ) //TODO modify for new renderer
2800
- t . tx += Cos * - appX * sx + - Sin * appY * sy ;
2801
- if ( ! this . _flippedY )
2802
- t . ty -= Sin * - appX * sx + Cos * appY * sy ;
2799
+ t . tx += Cos * - appX * sx + - Sin * appY * sy ;
2800
+ t . ty -= Sin * - appX * sx + Cos * appY * sy ;
2803
2801
2804
2802
// if ignore anchorPoint
2805
2803
if ( _t . _ignoreAnchorPointForPosition ) {
Original file line number Diff line number Diff line change @@ -185,10 +185,14 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
185
185
if ( blendChange )
186
186
context . globalCompositeOperation = node . _blendFuncStr ;
187
187
188
- if ( node . _flippedX )
188
+ if ( node . _flippedX ) {
189
+ locX = - locX - locWidth ;
189
190
context . scale ( - 1 , 1 ) ;
190
- if ( node . _flippedY )
191
+ }
192
+ if ( node . _flippedY ) {
193
+ locY = node . _offsetPosition . y ;
191
194
context . scale ( 1 , - 1 ) ;
195
+ }
192
196
193
197
if ( node . _texture ) {
194
198
image = node . _texture . _htmlElementObj ;
You can’t perform that action at this time.
0 commit comments