Fixed newly created level having the right source field set (#986)

* Fixed an issue with the source field a newly created level not being set correctly
This commit is contained in:
Terry Michaels
2021-05-27 11:40:16 -05:00
committed by GitHub
parent 528934a437
commit fd8fe8b939
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -3111,7 +3111,7 @@ CCryEditApp::ECreateLevelResult CCryEditApp::CreateLevel(const QString& levelNam
auto* service = AZ::Interface<AzToolsFramework::PrefabEditorEntityOwnershipInterface>::Get();
if (service)
{
service->CreateNewLevelPrefab((const char*)fullyQualifiedLevelName.toUtf8());
service->CreateNewLevelPrefab(fullyQualifiedLevelName.toUtf8().constData(), DefaultLevelTemplateName);
}
}