X Tutup
Skip to content

Expose get_fading_... methods for AnimationNodeStateMachinePlayback#109986

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
SomeRanDev:animation_node_state_machine_playback_expansion
Oct 28, 2025
Merged

Expose get_fading_... methods for AnimationNodeStateMachinePlayback#109986
Repiteo merged 1 commit intogodotengine:masterfrom
SomeRanDev:animation_node_state_machine_playback_expansion

Conversation

@SomeRanDev
Copy link
Contributor

@SomeRanDev SomeRanDev commented Aug 26, 2025

This exposes a couple public getter functions from AnimationNodeStateMachinePlayback.

Their original PR (#71284) doesn't mention any reason for them not to be exposed, and I could definitely use them!

  • get_fading_from_length/get_fading_from_play_position provide animation state information for the existing get_fading_from_node.
  • get_fading_length/get_fading_position provide information of the animation's runtime "blending" state.

@SomeRanDev SomeRanDev requested review from a team as code owners August 26, 2025 11:56
@AThousandShips AThousandShips added this to the 4.x milestone Aug 26, 2025
@SomeRanDev SomeRanDev force-pushed the animation_node_state_machine_playback_expansion branch from 2560955 to 5dd9444 Compare August 26, 2025 12:32
@SomeRanDev SomeRanDev changed the title Expose get_fade_... methods for AnimationNodeStateMachinePlayback Expose get_fading_... methods for AnimationNodeStateMachinePlayback Aug 26, 2025
Copy link
Member

@TokageItLab TokageItLab left a comment

Choose a reason for hiding this comment

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

Expose only getters are definitely safe. It also has consistency with current.

Just a nitpick, but to fix inconsistencies in C++ side, it might be better to rename get_fade_from_xxx() to get_fading_from_xxx(). This should be safe if it's only a change to the C++ functions.

@TokageItLab TokageItLab modified the milestones: 4.x, 4.6 Aug 28, 2025
@SomeRanDev SomeRanDev force-pushed the animation_node_state_machine_playback_expansion branch from 3b4d86a to dc8f7b4 Compare August 28, 2025 17:54
@fire fire requested a review from a team August 28, 2025 18:32
@SomeRanDev
Copy link
Contributor Author

Just a nitpick, but to fix inconsistencies in C++ side, it might be better to rename get_fade_from_xxx() to get_fading_from_xxx(). This should be safe if it's only a change to the C++ functions.

I had the same thought, but I wanted to be conservative with changes! Updated! 👍

@Repiteo Repiteo merged commit 597b0a2 into godotengine:master Oct 28, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 28, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

X Tutup