Skip to content

Commit

Permalink
Merge pull request #188 from SiggiG/master
Browse files Browse the repository at this point in the history
Adding method SetShouldSerializeMeshData() to static mesh provider
  • Loading branch information
Koderz authored Aug 9, 2020
2 parents 6a2dfcc + fd2c303 commit d307bbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ FRuntimeMeshRenderableMeshData URuntimeMeshProviderStatic::GetSectionRenderDataA
return MeshData;
}

void URuntimeMeshProviderStatic::SetShouldSerializeMeshData(bool bIsSerialized)
{
StoreEditorGeneratedDataForGame = bIsSerialized;
}

void URuntimeMeshProviderStatic::Initialize()
{
RMC_LOG_VERBOSE("Initializing...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ class RUNTIMEMESHCOMPONENT_API URuntimeMeshProviderStatic : public URuntimeMeshP

UFUNCTION(BlueprintCallable, Category = "RuntimeMesh|Providers|Static")
FRuntimeMeshRenderableMeshData GetSectionRenderDataAndClear(int32 LODIndex, int32 SectionId);

UFUNCTION(BlueprintCallable, Category = "RuntimeMesh|Providers|Static")
void SetShouldSerializeMeshData(bool bIsSerialized);


public:
Expand Down

0 comments on commit d307bbd

Please sign in to comment.