Skip to content

QtFRED Trim The Fat#7457

Open
MjnMixael wants to merge 1 commit into
scp-fs2open:masterfrom
MjnMixael:qtfred-editor-cleanup
Open

QtFRED Trim The Fat#7457
MjnMixael wants to merge 1 commit into
scp-fs2open:masterfrom
MjnMixael:qtfred-editor-cleanup

Conversation

@MjnMixael
Copy link
Copy Markdown
Contributor

@MjnMixael MjnMixael commented May 14, 2026

Removes a lot of dead code and FRED2 era cruft that QtFRED doesn't use, especially in editor.cpp. This was mostly briefing related code from before briefing dialog got it's own viewport and some other code that's been long commented out.

Some notes:

This does remove some commented out code intended to be used for a navigate to sexp usage upon obj delete feature. That is still on my todo list but I don't want to be beholden to past attempts. So yeet it all now and provide a clean slate.

cur_wing_index is removed entirely. It was copied from FRED2 where even there it is dead, only written to and never read. The loops that set this variable are also removed.

Editor::lcl_fred_replace_stuff(QString&) was also dead. It was added by Goober way back in 2023 and never used. All models run with SCP_string through the version in localize.cpp which is the preferred way anyway. Keeping this overload present and synced is just busy work. Yeet

delete_flag was really just a shadow of information that already flows naturally through the existing delete_object() == 2 return value. All six original writes of this flag to 1 were just before those functions returned 2 so we just use that and simplify the whole thing.

OBJ_POINT is an object type exclusive to FRED2 now. It's used by FRED2's briefing editor for icons. QtFRED uses the in-mission briefing renderer, so icons are not objects here.. they're just icons. The only create calls for OBJ_POINT now are in the FRED2 project. Once FRED2 is deprecated, that whole object type can go with it.

@MjnMixael MjnMixael added the qtfred A feature or issue related to qtFred. label May 14, 2026
@github-project-automation github-project-automation Bot moved this to Work In Progress (PRs) in qtFRED2 May 14, 2026
@MjnMixael MjnMixael added this to the Release 26.0 milestone May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

qtfred A feature or issue related to qtFred.

Projects

Status: Work In Progress (PRs)

Development

Successfully merging this pull request may close these issues.

1 participant