Temporarily disabled same cell ref check

This commit is contained in:
Eddoursul 2023-10-24 20:45:35 +02:00
parent add6832e55
commit 4df785d0d7

View File

@ -1,5 +1,5 @@
{ {
ESMify Plugins 1.0 Skyrim ESMifier 1.0
by Eddoursul https://eddoursul.win by Eddoursul https://eddoursul.win
For proper overriding of temporary records, "Always save ONAM" must be enabled in xEdit. For proper overriding of temporary records, "Always save ONAM" must be enabled in xEdit.
@ -54,11 +54,12 @@ begin
if GetLoadOrder(GetFile(referencingRecord)) <= GetLoadOrder(GetFile(rec)) then begin if GetLoadOrder(GetFile(referencingRecord)) <= GetLoadOrder(GetFile(rec)) then begin
// When referencing record is not referenced and it's in the same cell, the ref does not need persistence. // When referencing record is not referenced and it's in the same cell, the ref does not need persistence.
if (ReferencedByCount(referencingRecord) = 0) then begin // Not always true, needs investigating.
if (sig = 'REFR') then begin //if (ReferencedByCount(referencingRecord) = 0) then begin
if InSameCell(rec, referencingRecord) then continue; // if (sig = 'REFR') then begin
end; // if InSameCell(rec, referencingRecord) then continue;
end; // end;
//end;
// Refs referencing themselves do not require the flag // Refs referencing themselves do not require the flag
if not SameRecord(rec, referencingRecord) then begin if not SameRecord(rec, referencingRecord) then begin