Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AnimationTrackFilter and implement filter as an AnimationNode's parameter. #76788

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/classes/AnimationNode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@
<return type="Variant" />
<param index="0" name="name" type="StringName" />
<description>
Gets the value of a parameter. Parameters are custom local memory used for your animation nodes, given a resource can be reused in multiple trees.
Gets the value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
</description>
</method>
<method name="is_path_filtered" qualifiers="const">
<method name="is_path_filtered" qualifiers="const" is_deprecated="true">
<return type="bool" />
<param index="0" name="path" type="NodePath" />
<description>
Expand All @@ -159,7 +159,7 @@
Removes an input, call this only when inactive.
</description>
</method>
<method name="set_filter_path">
<method name="set_filter_path" is_deprecated="true">
<return type="void" />
<param index="0" name="path" type="NodePath" />
<param index="1" name="enable" type="bool" />
Expand All @@ -185,8 +185,8 @@
</method>
</methods>
<members>
<member name="filter_enabled" type="bool" setter="set_filter_enabled" getter="is_filter_enabled">
If [code]true[/code], filtering is enabled.
<member name="filter_enabled" type="bool" setter="set_filter_enabled" getter="is_filter_enabled" is_deprecated="true">
Deprecated, sets this property will do noting, gets will return [code]false[/code].
</member>
</members>
<signals>
Expand Down
51 changes: 51 additions & 0 deletions doc/classes/AnimationTrackFilter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="AnimationTrackFilter" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<brief_description>
A filter to describe [AnimationNode]'s filters.
</brief_description>
<description>
A filter to describe [AnimationNode]'s filters.
</description>
<tutorials>
</tutorials>
<methods>
<method name="clear_tracks">
<return type="void" />
<description>
Clear all tracks.
</description>
</method>
<method name="get_track_amount" qualifiers="const">
<return type="float" />
<param index="0" name="track_path" type="NodePath" />
<description>
</description>
</method>
<method name="has_trck" qualifiers="const">
<return type="bool" />
<param index="0" name="track_path" type="NodePath" />
<description>
Return [code]true[/code] if has [param track_path].
</description>
</method>
<method name="remove_track">
<return type="void" />
<param index="0" name="track_path" type="NodePath" />
<description>
Remove track, will do noting if this filter have not [param track_path].
</description>
</method>
<method name="set_track">
<return type="void" />
<param index="0" name="track_path" type="NodePath" />
<param index="1" name="amount" type="float" default="1.0" />
<description>
</description>
</method>
</methods>
<members>
<member name="tracks" type="Dictionary" setter="set_tracks" getter="get_tracks" default="{}">
A array of animation tracks' Nodepath which should be filtered.
</member>
</members>
</class>
Loading
Loading