Rebuild adjoining room geometry when pasting sectors near portals#1195
Open
Copilot wants to merge 2 commits into
Open
Rebuild adjoining room geometry when pasting sectors near portals#1195Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/TombEngine/Tomb-Editor/sessions/c2156dd4-fa1c-4504-9db5-4bec36d945c7 Co-authored-by: Nickelony <20436882+Nickelony@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix RoomGeometry update issue near portals
Rebuild adjoining room geometry when pasting sectors near portals
Apr 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Pasting sector geometry next to a wall portal could leave the connected room with stale/missing faces. The paste path was only rebuilding rooms when pasted sectors directly contained portal data, which missed geometry changes adjacent to the portal boundary.
Scope affected rooms from the pasted area
pastedArea.Inflate(1)so paste near a portal rebuilds both sides consistently.Use the normal geometry rebuild path
TryPasteSectors(...)withSmartBuildGeometry(...).Preserve editor notifications