Skip to content

Commit da2f87e

Browse files
committed
fix rotate bug
1 parent 44e60f4 commit da2f87e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/stage/StageShield.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,15 +679,15 @@ export default class StageShield extends DrawerBase implements IStageShield, ISt
679679
* 旋转组件
680680
*/
681681
private _rotateElements(): void {
682-
const { selectedElements } = this.store;
682+
const { selectedElements, noParentElements } = this.store;
683683
this.store.updateElements(selectedElements, {
684684
isRotating: true,
685685
});
686686
if (this.store.isMultiSelected) {
687687
this.selection.rangeElement.isRotating = true;
688688
this.store.updateElementsRotation([this.selection.rangeElement], this._pressMovePosition);
689689
} else {
690-
this.store.updateElementsRotation(selectedElements, this._pressMovePosition);
690+
this.store.updateElementsRotation(noParentElements, this._pressMovePosition);
691691
}
692692
selectedElements.forEach(element => element.onRotating());
693693
this.selection.refresh();

0 commit comments

Comments
 (0)