Skip to content

restore mission/goal/event listing in FRED2's campaign editor - #7719

Open
Goober5000 wants to merge 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/events_in_campaign_editor
Open

restore mission/goal/event listing in FRED2's campaign editor#7719
Goober5000 wants to merge 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/events_in_campaign_editor

Conversation

@Goober5000

Copy link
Copy Markdown
Contributor

The sexp tree refactor (#7301) moved the OPF listing logic into a shared model that asks the editor for campaign-aware lists via virtual methods on SexpTreeEditorInterface. QtFRED's campaign editor got the necessary overrides, but FRED2's never did, so its OPF_MISSION_NAME / OPF_GOAL_NAME / OPF_EVENT_NAME dropdowns fell back to the currently loaded mission's data instead of the campaign's.

Backport the overrides to FRED2, restoring its pre-refactor behavior (including listing only missions at earlier campaign levels), and hoist QtFRED's loadAndFindCampaignMission helper into missioneditor/common so both editors share one copy.

The sexp tree refactor (scp-fs2open#7301) moved the OPF listing logic into a shared
model that asks the editor for campaign-aware lists via virtual methods
on SexpTreeEditorInterface.  QtFRED's campaign editor got the necessary
overrides, but FRED2's never did, so its OPF_MISSION_NAME /
OPF_GOAL_NAME / OPF_EVENT_NAME dropdowns fell back to the currently
loaded mission's data instead of the campaign's.

Backport the overrides to FRED2, restoring its pre-refactor behavior
(including listing only missions at earlier campaign levels), and hoist
QtFRED's loadAndFindCampaignMission helper into missioneditor/common so
both editors share one copy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. fred A feature or issue related to the FReespace EDitor (FRED) labels Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. fred A feature or issue related to the FReespace EDitor (FRED)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant