Quellcode durchsuchen

Fix rulers getting offset when attached to non-default-scaled entities

master
Fen Dweller vor 4 Jahren
Ursprung
Commit
4576cc9a29
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. +3
    -3
      macrovision.js

+ 3
- 3
macrovision.js Datei anzeigen

@@ -3111,12 +3111,12 @@ function entityRelativePosition(pos, entityElement) {
const x = parseFloat(entityElement.dataset.x)
const y = parseFloat(entityElement.dataset.y)

pos.x /= entity.scale
pos.y /= entity.scale

pos.x -= x
pos.y -= y

pos.x /= entity.scale
pos.y /= entity.scale

return pos
}



Laden…
Abbrechen
Speichern