Skip to content

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

Merged
Goober5000 merged 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/events_in_campaign_editor
Aug 27, 2026
Merged

restore mission/goal/event listing in FRED2's campaign editor#7719
Goober5000 merged 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.

@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
Comment thread code/missioneditor/common.cpp Outdated
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 force-pushed the fix/events_in_campaign_editor branch from d1e1789 to c99ee7c Compare August 25, 2026 01:07

@wookieejedi wookieejedi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good now

@Goober5000
Goober5000 merged commit a7999b1 into scp-fs2open:master Aug 27, 2026
18 checks passed
@Goober5000
Goober5000 deleted the fix/events_in_campaign_editor branch August 27, 2026 17:18
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.

2 participants