When a material's Custom node contains a tab character, copying/duplicating the node will corrupt the code in the node.

Steps to Reproduce
  1. In another program (notepad) press tab and copy the tab'ed space
  2. Open UE4 Editor
  3. Create new material in content browser
  4. Add Custom node
  5. Paste the tab
  6. After the tab, enter int32 x=34;
  7. Press enter to confirm the entry
  8. Select the node and press Ctrl+C / Ctrl+V to copy/paste the node

New node shows "ntint32 x=34;"

New node has the tabbed space followed by the variable declaration

Have Comments or More Details?

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

Login to Vote

ComponentUE - Rendering - Materials
Affects Versions4.13.24.14
Target Fix4.16
Fix Commit3240817
Main Commit3279775
CreatedNov 22, 2016
ResolvedDec 20, 2016
UpdatedNov 2, 2021