removed unnecessary check

This commit is contained in:
nothingTVatYT
2023-11-28 00:50:44 +01:00
parent 84f3d50925
commit a3f1dc2694

View File

@@ -159,7 +159,7 @@ namespace FlaxEditor.Windows
{
contextMenu.AddSeparator();
var childCM = contextMenu.GetOrAddChildMenu("Add Scene");
foreach (var sceneGuid in unloadedScenes.Where(sceneGuid => !Level.FindScene(sceneGuid)))
foreach (var sceneGuid in unloadedScenes)
{
if (FlaxEngine.Content.GetAssetInfo(sceneGuid, out var unloadedScene))
{