Skip to content

Small fix for laser animation curve outputs#6858

Merged
wookieejedi merged 1 commit into
scp-fs2open:masterfrom
Kestrellius:fix-anim-curve-check
Jul 24, 2025
Merged

Small fix for laser animation curve outputs#6858
wookieejedi merged 1 commit into
scp-fs2open:masterfrom
Kestrellius:fix-anim-curve-check

Conversation

@Kestrellius

Copy link
Copy Markdown
Contributor

When a weapon is using a laser animation state curve, this overrides the default animation behavior. However, the bool governing this had failed to check for the auxiliary "animation state add" output, which meant that when anim-state-add was used in the absence of regular anim-state it did nothing. I fix this by making sure we override if either output has a curve, and also make sure that both values have a default of 0, since that is the intuitive behavior in this case.

@wookieejedi wookieejedi added the fix A fix for bugs, not-a-bugs, and/or regressions. label Jul 23, 2025

@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.

Makes sense to me, but will also wait to merge until @BMagnu has had a time to check these 2 new lines over!

@wookieejedi wookieejedi added this to the Release 25.0 milestone Jul 24, 2025

@BMagnu BMagnu 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.

LGTM.
For posterity:
Eventually we want stuff like "state add" to just be part of "state" and have the user say "this curve is added, this one is multiplied", but that's explicitly for a future upgrade of the modular curve system itself.

@wookieejedi wookieejedi merged commit d6cb989 into scp-fs2open:master Jul 24, 2025
20 checks passed
@Kestrellius Kestrellius deleted the fix-anim-curve-check branch July 25, 2025 00:27
Kestrellius added a commit to Kestrellius/fs2open.github.com that referenced this pull request Jul 26, 2025
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants