File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Screens/Edit/Compose/Components Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public override void Begin()
5959 objectsInRotation = selectedItems . Cast < Drawable > ( ) . ToArray ( ) ;
6060 originalRotations = objectsInRotation . ToDictionary ( d => d , d => d . Rotation ) ;
6161 originalPositions = objectsInRotation . ToDictionary ( d => d , d => d . ToScreenSpace ( d . OriginPosition ) ) ;
62- DefaultOrigin = GeometryUtils . GetSurroundingQuad ( objectsInRotation . SelectMany ( d => d . ScreenSpaceDrawQuad . GetVertices ( ) . ToArray ( ) ) ) . Centre ;
62+ DefaultOrigin = GeometryUtils . GetSurroundingQuad ( objectsInRotation . SelectMany ( d => ToLocalSpace ( d . ScreenSpaceDrawQuad ) . GetVertices ( ) . ToArray ( ) ) ) . Centre ;
6363
6464 base . Begin ( ) ;
6565 }
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ public partial class SelectionRotationHandler : Component
3030 /// <summary>
3131 /// Implementation-defined origin point to rotate around when no explicit origin is provided.
3232 /// This field is only assigned during a rotation operation.
33+ ///
34+ /// Coordinates are in local space for this container.
3335 /// </summary>
3436 public Vector2 ? DefaultOrigin { get ; protected set ; }
3537
You can’t perform that action at this time.
0 commit comments