TriAxis-Games / RealtimeMeshComponent

Unreal Engine 5 plugin component for rendering runtime generated content.
https://rmc.triaxis.games/
Other
1.57k stars 412 forks source link

Fixed an assertion in packaged projects when loading a level that has a pre-placed actor that is using a RealtimeMeshComponent #280

Closed KamikazeXeX closed 8 months ago

KamikazeXeX commented 8 months ago

In packaged projects when loading a level that has a pre-placed actor using an RMC, the engine crashes due to the following assertion.

[2024.03.15-23.28.31:801][ 0]LogWindows: Error: appError called: Assertion failed: IsInGameThread() || IsAsyncLoading() [File:U:\Unreal\Engines\UE_5.3\Engine\Source\Runtime\Engine\Private\Materials\MaterialInstance.cpp] [Line: 879]

This PR fixes that by replacing GetRelevance() with GetRelevance_Concurrent() which seems to be the preferred function within SceneProxy constructors.

Koderz commented 8 months ago

Thanks for the fix! Oversight on my part.

-Chris