GetStaticComponentMaskParameterValue returns the value for Static Switch Parameter

Hello,

It looks like UMaterialInterface::GetStaticComponentMaskParameterValue is getting the parameter value from the static switch list instead of from the StaticComponentMask list

GitHub branch 5.8 still looks to have this issue.

MaterialInterface.cpp#L557

The solution might be simply changing EMaterialParameterType::StaticSwitch to instead be EMaterialParameterType::StaticComponentMask in the aforementioned function.

Cheers

[Attachment Removed]

Hello,

Thank you for reporting this bug and fix. I’ve created the following issue for tracking which should be visible publicly soon https://issues.unrealengine.com/issue/UE\-376199

[Attachment Removed]