Skip to content

Commit

Permalink
compiles for 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Neumann committed Jun 23, 2022
1 parent 4bf931a commit 9873415
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/URoboVision/Private/SegmentationComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ FPrimitiveSceneProxy* USegmentationComponent::CreateSceneProxy(UStaticMeshCompon
UMaterialInterface* ProxyMaterial = SegmentationMID;
UStaticMesh* ParentStaticMesh = StaticMeshComponent->GetStaticMesh();
if(ParentStaticMesh == NULL
#if ENGINE_MINOR_VERSION < 27 && ENGINE_MAJOR_VERSION < 5
|| ParentStaticMesh->RenderData == NULL
|| ParentStaticMesh->RenderData->LODResources.Num() == 0)
#else
|| ParentStaticMesh->GetRenderData() == NULL
|| ParentStaticMesh->GetRenderData()->LODResources.Num() == 0)
#endif //Version
{
OUT_INFO(TEXT("ParentStaticMesh is invalid."));
return NULL;
Expand Down

0 comments on commit 9873415

Please sign in to comment.