Skip to content

Fallout4: fix Layers window count growing when a primitive is moved - #243

Merged
Perchik71 merged 1 commit into
Perchik71:masterfrom
frakkin64:fix-layer-ref-count
Oct 14, 2026
Merged

Perchik71 merged 1 commit into
Perchik71:masterfrom
frakkin64:fix-layer-ref-count

Conversation

@frakkin64

Copy link
Copy Markdown
Contributor

TESObjectREFR::Set3D replaces the 3D of a reference that already has one and still sends the "3D loaded" event. The Layers window counts every such event as one more reference in the layer and never gets the matching "unloaded" one, so the "#" column grows on every primitive move.

Skip the notify on the replace path of Set3D (1.10.162.0, 1.10.982.3, 1.11.137.0, 1.11.240.0; address ID 531824, bytes verified before patching).

TESObjectREFR::Set3D replaces the 3D of a reference that already has one
and still sends the "3D loaded" event. The Layers window counts every such
event as one more reference in the layer and never gets the matching
"unloaded" one, so the "#" column grows on every primitive move.

Skip the notify on the replace path of Set3D (1.10.162.0, 1.10.982.3,
1.11.137.0, 1.11.240.0; address ID 531824, bytes verified before patching).
@Perchik71
Perchik71 merged commit 1e6db77 into Perchik71:master Oct 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants