Skip to content

Commit

Permalink
Add filter to Blend3 node.
Browse files Browse the repository at this point in the history
Fixes #22923.
  • Loading branch information
rcorre committed Apr 1, 2019
1 parent 5b00cd8 commit dc50ac2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scene/animation/animation_blend_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,11 @@ bool AnimationNodeBlend3::is_using_sync() const {
return sync;
}

bool AnimationNodeBlend3::has_filter() const {

return true;
}

float AnimationNodeBlend3::process(float p_time, bool p_seek) {

float amount = get_parameter(blend_amount);
Expand Down
1 change: 1 addition & 0 deletions scene/animation/animation_blend_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ class AnimationNodeBlend3 : public AnimationNode {
void set_use_sync(bool p_sync);
bool is_using_sync() const;

virtual bool has_filter() const;
float process(float p_time, bool p_seek);
AnimationNodeBlend3();
};
Expand Down

0 comments on commit dc50ac2

Please sign in to comment.