1
0
mirror of https://github.com/teoxoy/factorio-blueprint-editor.git synced 2025-03-27 21:39:03 +02:00

fix ccw rotate not working for single entity

This commit is contained in:
Teodor Tanasoaia 2022-03-11 16:58:29 +01:00
parent 455cd36034
commit 9748ecf88b

View File

@ -175,7 +175,7 @@ export class Editor {
function doRotate(ccw: boolean): void {
if (G.BPC.mode === EditorMode.EDIT) {
G.BPC.hoverContainer.entity.rotate(false, true)
G.BPC.hoverContainer.entity.rotate(ccw, true)
} else if (G.BPC.mode === EditorMode.PAINT) {
if (G.BPC.paintContainer.canFlipOrRotateByCopying()) {
const copies = G.BPC.paintContainer.rotatedEntities(ccw)