浏览代码

change float to bool as correct type

firefly2442 7 年之前
父节点
当前提交
6af109cd99
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/animation/animation_tree_player.cpp

+ 1 - 1
scene/animation/animation_tree_player.cpp

@@ -556,7 +556,7 @@ float AnimationTreePlayer::_process_node(const StringName &p_node, AnimationNode
 				return _process_node(osn->inputs[0].node, r_prev_anim, p_time, p_seek, p_fallback_weight, p_weights);
 			}
 
-			float os_seek = p_seek;
+			bool os_seek = p_seek;
 
 			if (p_seek)
 				osn->time = p_time;