Fix issue where bounding box was not correct when selecting the outline of a vertically flipped Layer

This commit is contained in:
Igor Zinken
2025-03-15 19:28:41 +01:00
parent 8c99aa2e41
commit 5f191cf9cc

View File

@@ -205,9 +205,9 @@ class InteractionPane extends sprite {
selectAll( targetLayer: Layer = null ): void {
if ( targetLayer ) {
const { scale, rotation } = targetLayer.effects;
const { scale, rotation, mirrorY } = targetLayer.effects;
const bounds = scaleRectangle( getSpriteForLayer( targetLayer ).getBounds(), scale );
this.setSelection( [ rotateRectangleToCoordinates( bounds, rotation ) ]);
this.setSelection( [ rotateRectangleToCoordinates( bounds, mirrorY ? -rotation : rotation ) ]);
return;
}
this.setSelection(