aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/animation_tree_editor_plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/plugins/animation_tree_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/animation_tree_editor_plugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/editor/plugins/animation_tree_editor_plugin.cpp b/tools/editor/plugins/animation_tree_editor_plugin.cpp
index aeef59309..af15e17f5 100644
--- a/tools/editor/plugins/animation_tree_editor_plugin.cpp
+++ b/tools/editor/plugins/animation_tree_editor_plugin.cpp
@@ -221,8 +221,8 @@ void AnimationTreeEditor::_edit_dialog_animation_changed() {
void AnimationTreeEditor::_edit_dialog_edit_animation() {
- if (get_scene()->is_editor_hint()) {
- get_scene()->get_root()->get_child(0)->call("_resource_selected", property_editor->get_variant().operator RefPtr());
+ if (get_tree()->is_editor_hint()) {
+ get_tree()->get_root()->get_child(0)->call("_resource_selected", property_editor->get_variant().operator RefPtr());
};
};
@@ -936,7 +936,7 @@ void AnimationTreeEditor::_notification(int p_what) {
switch(p_what) {
- case NOTIFICATION_ENTER_SCENE: {
+ case NOTIFICATION_ENTER_TREE: {
play_button->set_icon( get_icon("Play","EditorIcons") );
add_menu->set_icon( get_icon("Add","EditorIcons") );