Hello,
I cloned the current release branch from Github which I believe is 4.25, and I’m running XCode Version 12.0.1 (12A7300) on MacOS Catalina 10.15.6 and I’m unable to compile Unreal Engine. I’m receiving two errors (Shell Script Invocation Error) in LandscapeEditLayers.cpp. The errors are on line 2050 and 2081 in DrawWeightmapComponentsToRenderTarget
DrawWeightmapComponentsToRenderTarget(OutputDebugName ? FString::Printf(TEXT(“LS Weight: %s = → %s Mips %d”), *ReadMipRT->GetName(), *WriteMipRT->GetName(), CurrentMip) : GEmptyDebugName,
SectionBaseToDraw, WeightmapScaleBias, nullptr, ReadMipRT, nullptr, WriteMipRT, ERTDrawingType::RTMips, InClearRTWrite, InShaderParams, CurrentMip++);
And DrawHeightmapComponentsToRenderTarget.
DrawHeightmapComponentsToRenderTarget(OutputDebugName ? FString::Printf(TEXT(“LS Height: %s = → %s CombinedAtlasWithMips %d”), *ReadMipRT->GetName(), *WriteMipRT->GetName(), CurrentMip) : GEmptyDebugName,
InComponentsToDraw, InLandscapeBase, ReadMipRT, nullptr, WriteMipRT, ERTDrawingType::RTMips, InClearRTWrite, InShaderParams, CurrentMip++);
The specific error is Unsequenced modification and access to ‘CurrentMip’
It seems to occur when attempting to increment CurrentMip++