From 4abc945466c69426cf4c00ab87d61b927ef1639d Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 21 Jul 2016 10:36:47 -0300 Subject: [PATCH] Instance only selected scenes in FS dock, closes #5795 --- tools/editor/filesystem_dock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/editor/filesystem_dock.cpp b/tools/editor/filesystem_dock.cpp index 24536c59e92..3be122cc7d6 100644 --- a/tools/editor/filesystem_dock.cpp +++ b/tools/editor/filesystem_dock.cpp @@ -951,7 +951,8 @@ void FileSystemDock::_file_option(int p_option) { case FILE_INSTANCE: { for (int i = 0; iget_item_count(); i++) { - + if (!files->is_selected(i)) + continue; String path =files->get_item_metadata(i); if (EditorFileSystem::get_singleton()->get_file_type(path)=="PackedScene") { emit_signal("instance",path);