|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
{ |
|
|
|
|
ESMify Plugins 1.0 |
|
|
|
|
Skyrim ESMifier 1.0 |
|
|
|
|
by Eddoursul https://eddoursul.win |
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
// 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 |
|
|
|
|
if (sig = 'REFR') then begin |
|
|
|
|
if InSameCell(rec, referencingRecord) then continue; |
|
|
|
|
end; |
|
|
|
|
end; |
|
|
|
|
// Not always true, needs investigating. |
|
|
|
|
//if (ReferencedByCount(referencingRecord) = 0) then begin |
|
|
|
|
// if (sig = 'REFR') then begin |
|
|
|
|
// if InSameCell(rec, referencingRecord) then continue; |
|
|
|
|
// end; |
|
|
|
|
//end; |
|
|
|
|
|
|
|
|
|
// Refs referencing themselves do not require the flag |
|
|
|
|
if not SameRecord(rec, referencingRecord) then begin |
|
|
|
|