Landscape layers with world composition error: Landscape actor is not loaded

cwingler
Fri, 28 Feb 2020 19:58:13 +0000
World Creation

It’s getting snagged on line 2655 in LandscapeEdMode.cpp. All landscapes are definitely loaded in the editor. I’ve tried making them current. Can’t figure how to fix this other than reverting and losing a bunch of work.

ALandscapeProxy* Proxy = CurrentToolTarget.LandscapeInfo->GetLandscapeProxy();

// Landscape Layer Editing not available without a loaded Landscape Actor
if (GetLandscape() == nullptr)
{
	if (!Proxy)
	{
        LocalReason = NSLOCTEXT("UnrealEd", "LandscapeNotFound", "No Landscape found.");
		return false;
	}

	if (Proxy->HasLayersContent())
	{
		LocalReason = NSLOCTEXT("UnrealEd", "LandscapeActorNotLoaded", "Landscape actor is not loaded. It is needed to do layer editing.");
		return false;
	}

}

7 posts - 7 participants