mirror of
https://github.com/godotengine/godot.git
synced 2025-04-01 00:41:35 +08:00
Fixes missing process_state error in blend spaces.
This commit is contained in:
parent
0a30831bed
commit
250e69856e
@ -380,7 +380,13 @@ AnimationNode::NodeTimeInfo AnimationNodeBlendSpace1D::_process(const AnimationM
|
||||
Ref<AnimationNodeAnimation> na_c = static_cast<Ref<AnimationNodeAnimation>>(blend_points[cur_closest].node);
|
||||
Ref<AnimationNodeAnimation> na_n = static_cast<Ref<AnimationNodeAnimation>>(blend_points[new_closest].node);
|
||||
if (na_c.is_valid() && na_n.is_valid()) {
|
||||
na_n->process_state = process_state;
|
||||
na_c->process_state = process_state;
|
||||
|
||||
na_n->set_backward(na_c->is_backward());
|
||||
|
||||
na_n = nullptr;
|
||||
na_c = nullptr;
|
||||
}
|
||||
// See how much animation remains.
|
||||
pi.seeked = false;
|
||||
|
@ -557,7 +557,13 @@ AnimationNode::NodeTimeInfo AnimationNodeBlendSpace2D::_process(const AnimationM
|
||||
Ref<AnimationNodeAnimation> na_c = static_cast<Ref<AnimationNodeAnimation>>(blend_points[cur_closest].node);
|
||||
Ref<AnimationNodeAnimation> na_n = static_cast<Ref<AnimationNodeAnimation>>(blend_points[new_closest].node);
|
||||
if (na_c.is_valid() && na_n.is_valid()) {
|
||||
na_n->process_state = process_state;
|
||||
na_c->process_state = process_state;
|
||||
|
||||
na_n->set_backward(na_c->is_backward());
|
||||
|
||||
na_n = nullptr;
|
||||
na_c = nullptr;
|
||||
}
|
||||
// See how much animation remains.
|
||||
pi.seeked = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user