Alt+Drag actor duplicates lose default data

Hi,

Just noticed that BPs lose default values when duplicated via Alt+Drag in the editor.
To reproduce:

  • Create a BP actor and add an editable array variable of type static mesh reference to it.
  • In the BP editor; add two elements to the array and assign default meshes.
  • Drag an instance of the BP actor into the level.
  • Add a third element to the array of the actor in the level and assign a mesh to it.
  • Alt+Drag the actor in the level to duplicate it.
  • Observe that the duplicated actor, while still having three array elements, only the last one is assigned. The first two entries are void.

Cheers,
Klaus

Hi KVogler,

Thank you for the report. I was able to reproduce this behavior so I’ve created JIRA UE-47320. Our developers will be investigating further. Follow that link to monitor the status of the report.

-TJ

Can confirm it indeed resets. Not Intended Behaviour I assume.

Thanks for fixing this issue! However, I was unable to actually find the code that resolves the issue in the commit. It looks like a bunch of bugfixes were all put up in a single commit? I’d really like to be able to copy the file changes over manually as I’m running a custom engine build atm.

Hi AJQuick,

We’ve recently made our dev streams available through Github, but unfortunately previous commits made before we exposed the streams are not available on Github. Thus, the commit that you had, either in Main 3582334 or one of the release streams 3643070 would be the closest you could get to grabbing the fix.

However, I can tell you that the fix for the original commit, 3547152, is made in UnrealExporter.cpp, so if you go to one of the commits I linked above and CTRL+F for UnrealExporter, you should be able to find the correct diff and apply those changes yourself.

I hope that helps.

Thanks,

Sean