浏览代码

Merge pull request #608 from TheoXD/timeseek_node_seek

Timeseek works like this
reduz 11 年之前
父节点
当前提交
20159ea7e9
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      scene/animation/animation_tree_player.cpp

+ 3 - 2
scene/animation/animation_tree_player.cpp

@@ -1046,8 +1046,9 @@ void AnimationTreePlayer::timescale_node_set_scale(const StringName& p_node,floa
 void AnimationTreePlayer::timeseek_node_seek(const StringName& p_node,float p_pos) {
 void AnimationTreePlayer::timeseek_node_seek(const StringName& p_node,float p_pos) {
 
 
 
 
-//	GET_NODE( NODE_TIMESEEK, TimeSeekNode );
-//hmm
+	GET_NODE( NODE_TIMESEEK, TimeSeekNode );
+	n->seek_pos=p_pos;
+
 }
 }
 void AnimationTreePlayer::transition_node_set_input_count(const StringName& p_node, int p_inputs) {
 void AnimationTreePlayer::transition_node_set_input_count(const StringName& p_node, int p_inputs) {