[FIXED] ZONE_POLYGON from RECT ME drawing rotation not taken into account.

This commit is contained in:
smiki 2025-10-01 15:11:44 +02:00
parent aace98545a
commit 935b52c489

View File

@ -579,8 +579,8 @@ do -- Zones and Pathlines
local h=objectData.height
local rotation = UTILS.ToRadian(objectData.angle or 0)
local sinRot = math.sin(-rotation)
local cosRot = math.cos(-rotation)
local sinRot = math.sin(rotation)
local cosRot = math.cos(rotation)
local dx = h / 2
local dy = w / 2