Skip to content

Commit

Permalink
Rename animation node process function
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhermeGSousa committed Dec 15, 2024
1 parent dc5f1b7 commit 6a32808
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/classes/AnimationNodeExtension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
4 changes: 2 additions & 2 deletions scene/animation/animation_node_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion scene/animation/animation_node_extension.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AnimationNodeExtension : public AnimationRootNode {
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);
Expand Down

0 comments on commit 6a32808

Please sign in to comment.