diff options
author | Silc Renew <tokage.it.lab@gmail.com> | 2023-01-10 18:15:16 +0900 |
---|---|---|
committer | Silc Renew <tokage.it.lab@gmail.com> | 2023-01-19 03:10:45 +0900 |
commit | 8bfaf098c7ab061d6363d3603c773cd9c48f17d7 (patch) | |
tree | 99ba8d26bf9d81682f00846e91bd41c99563cb85 /scene/animation/animation_blend_tree.h | |
parent | 7c2768c2f8abc2e81a55be72b436de69d9f01bf9 (diff) |
Add next/reset function to AnimationStateMachine
Diffstat (limited to 'scene/animation/animation_blend_tree.h')
-rw-r--r-- | scene/animation/animation_blend_tree.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/animation/animation_blend_tree.h b/scene/animation/animation_blend_tree.h index e72471202e..976620a6a8 100644 --- a/scene/animation/animation_blend_tree.h +++ b/scene/animation/animation_blend_tree.h @@ -299,7 +299,7 @@ class AnimationNodeTransition : public AnimationNodeSync { double xfade_time = 0.0; Ref<Curve> xfade_curve; - bool from_start = true; + bool reset = true; void _update_inputs(); @@ -328,8 +328,8 @@ public: void set_xfade_curve(const Ref<Curve> &p_curve); Ref<Curve> get_xfade_curve() const; - void set_from_start(bool p_from_start); - bool is_from_start() const; + void set_reset(bool p_reset); + bool is_reset() const; double process(double p_time, bool p_seek, bool p_is_external_seeking) override; |