diff --git a/Editor/src/Windows/EditorInterface.cpp b/Editor/src/Windows/EditorInterface.cpp index 1de50688..777f258b 100644 --- a/Editor/src/Windows/EditorInterface.cpp +++ b/Editor/src/Windows/EditorInterface.cpp @@ -1091,10 +1091,7 @@ namespace Nuake { char* file = (char*)payload->Data; std::string fullPath = std::string(file, 256); std::string relPath = FileSystem::AbsoluteToRelative(fullPath); - - Entity newEntity = Engine::GetCurrentScene()->CreateEntity("New prefab Entity"); - PrefabComponent& prefabComponent = newEntity.AddComponent(); - prefabComponent.PrefabInstance = Prefab::New(relPath); + Prefab::New(relPath); } ImGui::EndDragDropTarget(); }