From 8f87e24b28099d315baffb1db5054d3f86c44499 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Wed, 31 Mar 2021 00:32:16 +0200 Subject: [PATCH] Fixed bug with custom transformation assignments and deletions --- eid_api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index e582c490..a04e8a08 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -101,10 +101,10 @@ function EID:assignTransformation(targetType, targetIdentifier, transformationSt else entryID = targetIdentifier end + EID:removeEntryFromString(EID.CustomTransformAssignments, entryID, transformationString) if EID.CustomTransformAssignments[entryID] == nil then EID.CustomTransformAssignments[entryID] = transformationString else - EID:removeEntryFromString(EID.CustomTransformAssignments, entryID, transformationString) EID.CustomTransformAssignments[entryID] = EID.CustomTransformAssignments[entryID]..","..transformationString end EID:removeEntryFromString(EID.CustomTransformRemovals, entryID, transformationString) @@ -121,10 +121,10 @@ function EID:removeTransformation(targetType, targetIdentifier, transformationSt else entryID = targetIdentifier end + EID:removeEntryFromString(EID.CustomTransformRemovals, entryID, transformationString) if EID.CustomTransformRemovals[entryID] == nil then EID.CustomTransformRemovals[entryID] = transformationString else - EID:removeEntryFromString(EID.CustomTransformRemovals, entryID, transformationString) EID.CustomTransformRemovals[entryID] = EID.CustomTransformRemovals[entryID]..","..transformationString end EID:removeEntryFromString(EID.CustomTransformAssignments, entryID, transformationString)