Skip to content

Conversation

@aidencurtis
Copy link
Contributor

@aidencurtis aidencurtis commented Dec 11, 2025

Summary

SceneViewportWidget had a static member public SceneViewportWidget LastSelected. This held a reference to the last selected viewport widget, but this reference should be scoped to the current SceneViewWidget instead.

This change allows operations on the last selected viewport widget without concern of bleeding references from other scenes.

Summary of code changes:

cc @CarsonKompon

- Remove static LastSelected SceneViewportWidget. It should be scoped to the last selected viewport within a particular Scene view
- Add LastSelectedViewportWidget to SceneViewWidget
- Re-add focusing the last selected widget that was hotfixed in Facepunch#114
@aidencurtis aidencurtis force-pushed the scope-last-selected-viewport-to-scene-widget-view branch from 092894d to 67bf2af Compare December 12, 2025 00:03
@handsomematt handsomematt added the triaged triaged pull-requests are replicated on the internal sbox repo label Dec 12, 2025
@sboxbot sboxbot added the accepted this pull request was accepted, hurrah! label Dec 17, 2025
@sboxbot
Copy link
Contributor

sboxbot commented Dec 17, 2025

This PR has been merged upstream.

@sboxbot sboxbot closed this Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted this pull request was accepted, hurrah! triaged triaged pull-requests are replicated on the internal sbox repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants