Skip to content

fix a few bugs in model loading#7421

Open
Goober5000 wants to merge 2 commits intoscp-fs2open:masterfrom
Goober5000:fix/anchor_model
Open

fix a few bugs in model loading#7421
Goober5000 wants to merge 2 commits intoscp-fs2open:masterfrom
Goober5000:fix/anchor_model

Conversation

@Goober5000
Copy link
Copy Markdown
Contributor

Each time model_load is called with a ship_info pointer, which causes it to load subsystems, the model number MUST be assigned to the ship_info.

@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. Requested by Active Mod A feature request that has been requested by a mod that is actively in development. labels May 5, 2026
Copy link
Copy Markdown
Member

@BMagnu BMagnu left a comment

Choose a reason for hiding this comment

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

Should this not rather be part of the model_load call then, when supplied with a sip?

@Goober5000
Copy link
Copy Markdown
Contributor Author

Should this not rather be part of the model_load call then, when supplied with a sip?

I actually started to do that, while removing the existing assignments to the ship class, and then I rolled that all back. But yes, that would be more future-proof.

@Goober5000 Goober5000 requested a review from BMagnu May 5, 2026 04:05
Goober5000 added 2 commits May 5, 2026 00:19
Each time `model_load` is called with a `ship_info` pointer, which causes it to load subsystems, the model number MUST be assigned to the ship_info.
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. Requested by Active Mod A feature request that has been requested by a mod that is actively in development.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants