File tree 1 file changed +1
-9
lines changed
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -578,15 +578,6 @@ void Sprite::updateTransform(void)
578
578
float x2 = x1 + size.width ;
579
579
float y2 = y1 + size.height ;
580
580
581
- if (_flippedX)
582
- {
583
- std::swap (x1, x2);
584
- }
585
- if (_flippedY)
586
- {
587
- std::swap (y1 , y2);
588
- }
589
-
590
581
float x = _transformToBatch.m [12 ];
591
582
float y = _transformToBatch.m [13 ];
592
583
@@ -610,6 +601,7 @@ void Sprite::updateTransform(void)
610
601
_quad.br .vertices .set (SPRITE_RENDER_IN_SUBPIXEL (bx), SPRITE_RENDER_IN_SUBPIXEL (by), _positionZ);
611
602
_quad.tl .vertices .set (SPRITE_RENDER_IN_SUBPIXEL (dx), SPRITE_RENDER_IN_SUBPIXEL (dy), _positionZ);
612
603
_quad.tr .vertices .set (SPRITE_RENDER_IN_SUBPIXEL (cx), SPRITE_RENDER_IN_SUBPIXEL (cy), _positionZ);
604
+ setTextureCoords (_rect);
613
605
}
614
606
615
607
// MARMALADE CHANGE: ADDED CHECK FOR nullptr, TO PERMIT SPRITES WITH NO BATCH NODE / TEXTURE ATLAS
You can’t perform that action at this time.
0 commit comments