fix Local Mode having modifiers applied
This commit is contained in:
1 parent
5345453b7c
commit
42c12b9cb1
1 file changed
+5
-2
+5
-2
@@ -265,8 +265,11 @@ end
|
|||||||
-- returns the current text position
|
-- returns the current text position
|
||||||
function EID:getTextPosition()
|
function EID:getTextPosition()
|
||||||
local posVector = Vector(EID.UsedPosition.X, EID.UsedPosition.Y)
|
local posVector = Vector(EID.UsedPosition.X, EID.UsedPosition.Y)
|
||||||
for _, modifier in pairs(EID.PositionModifiers) do
|
-- Only apply position modifiers when not in Local Mode
|
||||||
posVector = posVector + modifier
|
if EID.CurrentScaleType == "Size" then
|
||||||
|
for _, modifier in pairs(EID.PositionModifiers) do
|
||||||
|
posVector = posVector + modifier
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return posVector
|
return posVector
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user