You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
renamed AnimationGraphPlayer to AnimationTree
This commit is contained in:
@@ -54,7 +54,7 @@ void AnimationNodeBlendSpace2DEditor::_blend_space_gui_input(const Ref<InputEven
|
||||
ClassDB::get_inheriters_from_class("AnimationRootNode", &classes);
|
||||
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 && gp->has_node(gp->get_animation_player())) {
|
||||
AnimationPlayer *ap = Object::cast_to<AnimationPlayer>(gp->get_node(gp->get_animation_player()));
|
||||
@@ -693,12 +693,12 @@ void AnimationNodeBlendSpace2DEditor::_notification(int p_what) {
|
||||
|
||||
String error;
|
||||
|
||||
if (!blend_space->get_graph_player()) {
|
||||
error = TTR("BlendSpace2D 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("BlendSpace2D 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();
|
||||
} else if (blend_space->get_triangle_count() == 0) {
|
||||
error = TTR("No triangles exist, so no blending can take place.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user