From 469f5a8fbc05b9700b7cf770f28a268791f9bf6e Mon Sep 17 00:00:00 2001 From: Guilherme Sousa Date: Sun, 15 Dec 2024 18:21:41 +0100 Subject: [PATCH] Rename animation node process function --- doc/classes/AnimationNode.xml | 2 +- doc/classes/AnimationNodeExtension.xml | 2 +- scene/animation/animation_node_extension.cpp | 4 ++-- scene/animation/animation_node_extension.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/classes/AnimationNode.xml b/doc/classes/AnimationNode.xml index 4948ad94f4a..5298727b0f7 100644 --- a/doc/classes/AnimationNode.xml +++ b/doc/classes/AnimationNode.xml @@ -156,7 +156,7 @@ 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. diff --git a/doc/classes/AnimationNodeExtension.xml b/doc/classes/AnimationNodeExtension.xml index 3373b95a33b..f36515c43dc 100644 --- a/doc/classes/AnimationNodeExtension.xml +++ b/doc/classes/AnimationNodeExtension.xml @@ -9,7 +9,7 @@ - + diff --git a/scene/animation/animation_node_extension.cpp b/scene/animation/animation_node_extension.cpp index 8536da9d0f1..3d5a6367872 100644 --- a/scene/animation/animation_node_extension.cpp +++ b/scene/animation/animation_node_extension.cpp @@ -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) { diff --git a/scene/animation/animation_node_extension.h b/scene/animation/animation_node_extension.h index 08e4b4f00c2..7edac3041fe 100644 --- a/scene/animation/animation_node_extension.h +++ b/scene/animation/animation_node_extension.h @@ -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);