diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 5041441ac32..684942dbade 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1782,6 +1782,14 @@ void FileSystemDock::_resource_created() const { Resource *r = Object::cast_to(c); ERR_FAIL_COND(!r); + PackedScene *scene = Object::cast_to(r); + if (scene) { + Node *node = memnew(Node); + node->set_name("Node"); + scene->pack(node); + memdelete(node); + } + REF res(r); editor->push_item(c);