You've already forked godot
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user