You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Instance only selected scenes in FS dock, closes #5795
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user