Skip to content

Use std::conditional and add engine guards (for compatibility with UE 5.8) - #300

Open
joanpark wants to merge 1 commit into
TriAxis-Games:masterfrom
joanpark:master
Open

Use std::conditional and add engine guards (for compatibility with UE 5.8)#300
joanpark wants to merge 1 commit into
TriAxis-Games:masterfrom
joanpark:master

Conversation

@joanpark

Copy link
Copy Markdown

Replace TChooseClass usage with std::conditional_t in RealtimeMeshBuilder to remove dependency on Templates/ChooseClass and improve compatibility.

Remove the now-unneeded include.

Add #if !RMC_ENGINE_ABOVE_5_7 guards around bIsSplineProxy and ImposterIndex initializations in RealtimeMeshSectionProxy.cpp and RealtimeMeshNaniteResourcesInterface.h to avoid referencing members not present in newer engine versions.

Files changed: RealtimeMeshBuilder.h, RealtimeMeshSectionProxy.cpp, RealtimeMeshNaniteResourcesInterface.h.

Replace TChooseClass usage with std::conditional_t in RealtimeMeshBuilder to remove dependency on Templates/ChooseClass and improve compatibility. Remove the now-unneeded include. Add #if !RMC_ENGINE_ABOVE_5_7 guards around bIsSplineProxy and ImposterIndex initializations in RealtimeMeshSectionProxy.cpp and RealtimeMeshNaniteResourcesInterface.h to avoid referencing members not present in newer engine versions. Files changed: RealtimeMeshBuilder.h, RealtimeMeshSectionProxy.cpp, RealtimeMeshNaniteResourcesInterface.h.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant