1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

renamed AnimationGraphPlayer to AnimationTree

This commit is contained in:
Juan Linietsky
2018-06-25 18:40:24 -03:00
parent 87f48e7a3e
commit 8c7da84e1e
16 changed files with 124 additions and 119 deletions

View File

@@ -62,7 +62,7 @@ void AnimationNodeBlendSpace1DEditor::_blend_space_gui_input(const Ref<InputEven
menu->add_submenu_item(TTR("Add Animation"), "animations");
AnimationGraphPlayer *gp = blend_space->get_graph_player();
AnimationTree *gp = blend_space->get_tree();
ERR_FAIL_COND(!gp);
if (gp->has_node(gp->get_animation_player())) {
@@ -519,12 +519,12 @@ void AnimationNodeBlendSpace1DEditor::_notification(int p_what) {
if (p_what == NOTIFICATION_PROCESS) {
String error;
if (!blend_space->get_graph_player()) {
error = TTR("BlendSpace1D does not belong to an AnimationGraphPlayer node.");
} else if (!blend_space->get_graph_player()->is_active()) {
error = TTR("AnimationGraphPlayer is inactive.\nActivate to enable playback, check node warnings if activation fails.");
} else if (blend_space->get_graph_player()->is_state_invalid()) {
error = blend_space->get_graph_player()->get_invalid_state_reason();
if (!blend_space->get_tree()) {
error = TTR("BlendSpace1D does not belong to an AnimationTree node.");
} else if (!blend_space->get_tree()->is_active()) {
error = TTR("AnimationTree is inactive.\nActivate to enable playback, check node warnings if activation fails.");
} else if (blend_space->get_tree()->is_state_invalid()) {
error = blend_space->get_tree()->get_invalid_state_reason();
}
if (error != error_label->get_text()) {