#include "animation_blend_tree_editor_plugin.h" #include "core/io/resource_loader.h" #include "core/project_settings.h" #include "os/input.h" #include "os/keyboard.h" #include "scene/animation/animation_player.h" #include "scene/gui/menu_button.h" #include "scene/gui/panel.h" #include "scene/main/viewport.h" void AnimationNodeBlendTreeEditor::edit(AnimationNodeBlendTree *p_blend_tree) { if (blend_tree.is_valid()) { blend_tree->disconnect("removed_from_graph", this, "_removed_from_graph"); } if (p_blend_tree) { blend_tree = Ref(p_blend_tree); } else { blend_tree.unref(); } if (blend_tree.is_null()) { hide(); } else { blend_tree->connect("removed_from_graph", this, "_removed_from_graph"); _update_graph(); } } void AnimationNodeBlendTreeEditor::add_custom_type(const String &p_name, const Ref