Crash in niagara editor when the mesh renderer's static mesh array contains empty entries

Hello,

The crash is pretty straightforward:

  • Open the repro project
  • Open the niagara system
  • Click on “Mesh Renderer”
  • Click on the + button to try to add one element to the “Meshes” array

The editor will crash because it’s generated only one default widget in the Widgets array, but several tooltip widgets in the TooltipWidgets array so the check will fail.

Steps to Reproduce

  • Open the repro project
  • Open the niagara system
  • Click on “Mesh Renderer”
  • Click on the + button to try to add one element to the “Meshes” array

Hi there,

Thanks for reporting this issue, and for the well put together repro steps and repro project.

This is a known issue, you can find the issue tracker here. This issue was fixed recently in this commit. If you’re using a source build, and depending on the severity of this issue in your workflow, you may want to cherry pick the commit. Otherwise, this is targeted to be merged back in for the 5.6.1 release.

Thanks,

Hayden

Hi Hayden,

Thank you for the quick response.

And thank you for the link! I looked quickly in the code to see if a fix was already available but I must have missed this commit.

Have a nice day!

Romain