diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-07-21 10:36:47 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-07-21 10:36:47 -0300 |
commit | 4abc945466c69426cf4c00ab87d61b927ef1639d (patch) | |
tree | 493ec4bd4ea07323b2b3dc1a70c2d460730a9dd1 | |
parent | ff8f4cb40984884c722809fc0d440299570053b1 (diff) |
Instance only selected scenes in FS dock, closes #5795
-rw-r--r-- | tools/editor/filesystem_dock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/filesystem_dock.cpp b/tools/editor/filesystem_dock.cpp index 24536c59e9..3be122cc7d 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; i<files->get_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); |