summaryrefslogtreecommitdiffstats
path: root/tools/editor/plugins/sample_library_editor_plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/plugins/sample_library_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/sample_library_editor_plugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/editor/plugins/sample_library_editor_plugin.cpp b/tools/editor/plugins/sample_library_editor_plugin.cpp
index 84143dcd4b..41c84f6e2c 100644
--- a/tools/editor/plugins/sample_library_editor_plugin.cpp
+++ b/tools/editor/plugins/sample_library_editor_plugin.cpp
@@ -47,7 +47,7 @@ void SampleLibraryEditor::_notification(int p_what) {
}
- if (p_what==NOTIFICATION_ENTER_SCENE) {
+ if (p_what==NOTIFICATION_ENTER_TREE) {
play->set_icon( get_icon("Play","EditorIcons") );
stop->set_icon( get_icon("Stop","EditorIcons") );
load->set_icon( get_icon("Folder","EditorIcons") );
@@ -129,7 +129,7 @@ void SampleLibraryEditor::_button_pressed(Object *p_item,int p_column, int p_id)
player->play(name,true);
} else if (p_column==1) {
- get_scene()->get_root()->get_child(0)->call("_resource_selected",sample_library->get_sample(name));
+ get_tree()->get_root()->get_child(0)->call("_resource_selected",sample_library->get_sample(name));
}
@@ -186,7 +186,7 @@ void SampleLibraryEditor::_item_edited() {
Ref<Sample> samp = sample_library->get_sample(tree->get_selected()->get_metadata(0));
- get_scene()->get_root()->get_child(0)->call("_resource_selected",samp);
+ get_tree()->get_root()->get_child(0)->call("_resource_selected",samp);
}