mirror of
https://github.com/igorski/bitmappery.git
synced 2026-07-27 01:07:42 +02:00
Fix issue where bounding box was not correct when selecting the outline of a vertically flipped Layer
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user