Branch: A build of the GitHub 4.2 branch
Build Version: 4.2.0-0+UE4
Repro Steps:
- In Visual Studio open MaterialExpression.cpp
- Goto line 2880 (assumes 4.2 codebase, also try going to UMaterialExpressionSine::Compile)
- See that when Sine is compiled it either passes a multiplication for using Period, but if Period is 0.0f it just passes the Input unmodified.
- Goto line 2916 (assumes 4.2 codebase, also try going to UMaterialExpressionCosine::Compile)
- See that when Cosine is compiled it always passes a multiplication, but if Period is 0.0f it passes 0 as the index to the second multiplicand. I don’t think this is the intended behaviour.
I made a test material that shows the bug, but when I try to attach it I get an error saying that the file type (.uasset) is invalid.