GeometryCollectionComponents that have root proxies will now create root proxy static mesh components when there is no other render method enabled.

This deals with an edge case with geometry collection custom renderers. Custom renderers don't run in edition mode, and in editor we would expect to have mesh data available instead. But for UEFN editor with cooked data, the mesh data may already be removed (because it is not needed in cooked game).
#rb Shaun.Kime
[FYI] cedric.caillaud

[CL 31643010 by jeremy moore in ue5-main branch]
This commit is contained in:
jeremy moore
2024-02-20 08:48:42 -05:00
parent cc5d16b18d
commit a5e85b59f6
2 changed files with 60 additions and 1 deletions
@@ -1825,6 +1825,12 @@ private:
void UpdateBrokenAndDecayedStates();
bool ShouldCreateRootProxyComponents() const;
void CreateRootProxyComponentsIfNeeded();
void ClearRootProxyComponents();
TArray<TObjectPtr<UStaticMeshComponent>> RootProxyStaticMeshComponents;
private:
enum class ENetAwakeningMode