... with a duplicate entry.
Usecase: I am using a historical clipboard to have multiple items on my clipboard simultaneously.
I am able to observe the same behaviour using Windows' builtin clipboard history. (WIN+V)
Steps to reproduce
Begin by having a blueprint in your clipboard (image 1)
Press CTRL+V in-game.
Observe that the clipboard has been overwritten (image 2)
Additional info
This cannot be fixed by removing duplicate entries from the clipboard history, because the clipboard items differ. (image 3)
The difference is due to the timestamp contained in the gzip header.
Disabling the "Copy blueprints to clipboard" is not a suitable solution, because then CTRL+C does not copy to the clipboard anymore.
Solution 1 (small change, ugly)
Skip clipboard modification on ctrl+v with an extra flag, similar to how the blueprint history sets WithinManualChange.
(This would limit the scope of this change to HUDBlueprintHistory.HandleBlueprintPaste and HUDBlueprintHistory.OnPlacementChange)
Solution 2 (larger change)(SPZ2-2007 Won't Fix)
I think binding clipboard modification to a "structures are being placed" event is wrong. (*)
Instead the clipboard should be modified by the action handlers (-> always for "clone/copy selection" on the building/island layer ; conditionally for loading blueprints from the toolbar/library ; I'm mixed on the ctrl+S keybind)
(*) obviously I'm not as familiar with the codebase as you are, so take my judgment with several grains of salt.