Kaynağa Gözat

Rename animation node process function

Guilherme Sousa 7 ay önce
ebeveyn
işleme
469f5a8fbc

+ 1 - 1
doc/classes/AnimationNode.xml

@@ -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">

+ 1 - 1
doc/classes/AnimationNodeExtension.xml

@@ -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" />

+ 2 - 2
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) {

+ 1 - 1
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);