Просмотр исходного кода

Fix selection of flipped entities

master
Fen Dweller 3 лет назад
Родитель
Сommit
1cba489046
1 измененных файлов: 3 добавлений и 0 удалений
  1. +3
    -0
      macrovision.js

+ 3
- 0
macrovision.js Просмотреть файл

@@ -2687,6 +2687,9 @@ function testClick(event) {


testCtx.translate(actualW / 2, actualH / 2); testCtx.translate(actualW / 2, actualH / 2);
testCtx.rotate(angle); testCtx.rotate(angle);
if (entity.flipped) {
testCtx.scale(-1, 1);
}
testCtx.translate(-actualW / 2, -actualH / 2); testCtx.translate(-actualW / 2, -actualH / 2);
testCtx.drawImage(target, actualW / 2 - w / 2, actualH / 2 - h / 2, w, h); testCtx.drawImage(target, actualW / 2 - w / 2, actualH / 2 - h / 2, w, h);
testCtx.fillStyle = "red"; testCtx.fillStyle = "red";


Загрузка…
Отмена
Сохранить