This is a regression.

Tested in:
//UE4/Release-4.27 CL18319896 Binary
//UE5/Release-5.0 CL18747223 GitHub

When using the Random Value Per Element from a PivotPainter_PerObjectData with a Cross node the editor crashes with an assertion. Using a Vector 3 etc. for the B input will also result in the same crash.

Steps to Reproduce
  1. In any UE5 project create a new material
  2. Add a "PivotPainter_PerObjectData" node and "Cross" node.
  3. Connect the "Random Value Per Element" output from the "PivotPainter" node to the A and B input of the cross node
  4. Connect the "Cross" node's output to the "Base" input of the "Material" node

Expected Results:
No crash, no errors.

Actual Results:
Editor crashes with "Assertion Failed: LhsNonLWCType == EDerivativeType::Float3 [Filed: ...\Engine\Source\Runtime\Engine\Private\Materials\HLSMaterialDerivativeAutogen.cpp][Line:448]"


No callstack.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-140667 in the post.

Login to Vote

ComponentUE - Rendering - Materials
Affects Versions5.0
Target Fix5.0
Fix Commit18831324
Main Commit18831435
Release Commit18831324
CreatedJan 31, 2022
ResolvedFeb 2, 2022
UpdatedJan 25, 2023