Incorrect foliage color in the editor preview when using PerInstanceRandom in foliage material

When using PerInstanceRandom in the foliage material the foliage in the editor preview has incorrect “broken” color. In the game preview all works fine.

STR:

  1. Create new blank project.
  2. Create new material.
  3. In the material editor add vector3 node and change its colour (yellow for example).
  4. Add PerInstanceRandom node.
  5. Add “Add” node.
  6. Connect vector3 and PerInstanceRandom to Add node.
  7. Connect add node to Base Color or/and Emissive Color.

  1. Apply changes and save material.
  2. Create new static mesh and set new material in material slots.
  3. Add new static mesh to foliage brush.
  4. Place foliage on level.
  5. Save and reopen level.

Result:
Foliage color is broken.

Expected Result:

Additional Info:
In the 4.18.x all works fine.

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form

Thanks

Hi, thank you!

I submitted an issue report using the new Bug Submission Form, I will update this thread if some feedback comes back.

I’m also experiencing this issue in 4.19 and was able to reproduce it in a new blank project. Here is the bug report to vote on for anyone else having trouble. Unreal Engine Issues and Bug Tracker (UE-56272)

I have the same issue. Very annoying, but at least the correct colors are being displayed when actually running the game.

Fixed in 4.19.2