You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Embree device/scene is used even after they fail init. Fix crash by early out. (This matches the behavior of GenerateCardRepresentationData).
Failed Embree init will leave FDistanceFieldVolumeData::IsValid() returning false. #rb tiago.costa, mihnea.balta #rnx #preflight 63ff868dae54ee4ce945432b [CL 24471347 by kevin ortegren in ue5-main branch]
This commit is contained in:
@@ -274,6 +274,12 @@ void FMeshUtilities::GenerateSignedDistanceFieldVolumeData(
|
||||
|
||||
check(EmbreeScene.bUseEmbree);
|
||||
|
||||
// If Embree setup fails, there will be no scene to operate on. Early out.
|
||||
if (!EmbreeScene.EmbreeScene)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Whether to use an Embree Point Query to compute the closest unsigned distance. Rays will only be traced to determine backfaces visible for sign.
|
||||
const bool bUsePointQuery = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user