diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2018-06-25 18:40:24 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2018-06-25 18:40:24 -0300 |
| commit | 8c7da84e1eae25302a0c88594cce88b84f2dc21e (patch) | |
| tree | 5f9d2ce0c85c765016854d05831591de6ac17ccf /editor/plugins/animation_blend_space_1d_editor.cpp | |
| parent | 87f48e7a3ee7bbfbc746e9df3fcff68917ae5f76 (diff) | |
| download | redot-engine-8c7da84e1eae25302a0c88594cce88b84f2dc21e.tar.gz | |
renamed AnimationGraphPlayer to AnimationTree
Diffstat (limited to 'editor/plugins/animation_blend_space_1d_editor.cpp')
| -rw-r--r-- | editor/plugins/animation_blend_space_1d_editor.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/editor/plugins/animation_blend_space_1d_editor.cpp b/editor/plugins/animation_blend_space_1d_editor.cpp index 15d259e439..2e128db883 100644 --- a/editor/plugins/animation_blend_space_1d_editor.cpp +++ b/editor/plugins/animation_blend_space_1d_editor.cpp @@ -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()) { |
