Rename animation node process function

This commit is contained in:
Guilherme Sousa 2024-12-15 18:21:41 +01:00
parent dc5f1b7a28
commit 469f5a8fbc
4 changed files with 5 additions and 5 deletions

View file

@ -156,7 +156,7 @@
<return type="int" />
<description>
Returns the object id of the [AnimationTree] that owns this node.
[b]Note:[/b] This method should only be called from within the [method AnimationNodeExtension._process] method, and will return an invalid id otherwise.
[b]Note:[/b] This method should only be called from within the [method AnimationNodeExtension._process_animation_node] method, and will return an invalid id otherwise.
</description>
</method>
<method name="is_path_filtered" qualifiers="const">

View file

@ -9,7 +9,7 @@
<tutorials>
</tutorials>
<methods>
<method name="_process" qualifiers="virtual">
<method name="_process_animation_node" qualifiers="virtual">
<return type="PackedFloat32Array" />
<param index="0" name="playback_info" type="PackedFloat64Array" />
<param index="1" name="test_only" type="bool" />

View file

@ -34,7 +34,7 @@ AnimationNode::NodeTimeInfo AnimationNodeExtension::_process(const AnimationMixe
PackedFloat32Array r_ret;
GDVIRTUAL_CALL(
_process,
_process_animation_node,
_playback_info_to_array(p_playback_info),
p_test_only,
r_ret);
@ -53,7 +53,7 @@ double AnimationNodeExtension::get_remaining_time(const PackedFloat32Array &p_no
void AnimationNodeExtension::_bind_methods() {
ClassDB::bind_static_method("AnimationNodeExtension", D_METHOD("is_looping", "node_info"), &AnimationNodeExtension::is_looping);
ClassDB::bind_static_method("AnimationNodeExtension", D_METHOD("get_remaining_time", "node_info", "break_loop"), &AnimationNodeExtension::get_remaining_time);
GDVIRTUAL_BIND(_process, "playback_info", "test_only");
GDVIRTUAL_BIND(_process_animation_node, "playback_info", "test_only");
}
AnimationNode::NodeTimeInfo AnimationNodeExtension::_array_to_node_time_info(const PackedFloat32Array &p_node_info) {

View file

@ -45,7 +45,7 @@ public:
protected:
static void _bind_methods();
GDVIRTUAL2R_REQUIRED(PackedFloat32Array, _process, PackedFloat64Array, bool);
GDVIRTUAL2R_REQUIRED(PackedFloat32Array, _process_animation_node, PackedFloat64Array, bool);
private:
static AnimationNode::NodeTimeInfo _array_to_node_time_info(const PackedFloat32Array &p_array);