Fix a bug that would rotate things the wrong way
@@ -130,13 +130,6 @@ public class AnimatableLayer extends Drawable {
}
}
- if (layer.transform != null) {
- ScaleXY scale = layer.transform.getValue();
- if (scale.getScaleX() != 1f || scale.getScaleY() != 1f) {
- canvas.scale(scale.getScaleX(), scale.getScaleY());
- }
- }
-
if (layer.rotation != null) {
float rotation = layer.rotation.getValue();
if (rotation != 0f) {
@@ -144,6 +137,13 @@ public class AnimatableLayer extends Drawable {
}
}
+ if (layer.transform != null) {
+ ScaleXY scale = layer.transform.getValue();
+ if (scale.getScaleX() != 1f || scale.getScaleY() != 1f) {
+ canvas.scale(scale.getScaleX(), scale.getScaleY());
+ }
+ }
+
if (layer.anchorPoint != null) {
PointF anchorPoint = layer.anchorPoint.getValue();
if (anchorPoint.x != 0 || anchorPoint.y != 0) {
