Fixed bug with custom transformation assignments and deletions

This commit is contained in:
Wofsauge committed 2021-03-31 00:32:16 +02:00
1 parent e9f1a9979a
commit 8f87e24b28
1 file changed
+2 -2
+2 -2
View File
@@ -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)