Skip to content

Commit

Permalink
!B (Sandbox) (CE-17809) Opening a level through the asset browser wil…
Browse files Browse the repository at this point in the history
…l set the wrong level path. When saving the level, Legacy code in mission, terrain, vegetation, etc will fail to resolve the path

Copied from Perforce
 Change: 1835134
  • Loading branch information
Luis Manuel Lairet Montero committed Aug 10, 2018
1 parent 8b32154 commit 9666316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Sandbox/EditorQt/LevelEditor/LevelAssetType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ CAssetEditor* CLevelType::Edit(CAsset* pAsset) const
{
// Editing the level type presents a special case, as it does not return an asset editor.
// Instead we load the level.

CCryEditApp::GetInstance()->LoadLevel(pAsset->GetFile(0));
auto levelFullPath = PathUtil::Make(PathUtil::GetGameProjectAssetsPath(), pAsset->GetFile(0));
CCryEditApp::GetInstance()->LoadLevel(PathUtil::AbsolutePathToCryPakPath(levelFullPath));

return nullptr;
}
Expand Down

0 comments on commit 9666316

Please sign in to comment.