Description

Actors can be copy-pasted from hidden layers, which carries with it bHiddenEdLayer state. 

 

"It looks like this could be prevented in UUnrealEdEngine::edactPasteSelected, by setting bHiddenEdLayer to false when ensuring the pasted actor's layers are all visible. bHiddenEdLevel is also transient while bHiddenEdLayer is not, that might be another thing to explore.

Also worth note is that if you paste the copied actor into a text file, you will also observe that the object has bIsEditorPreviewActor set to true. Should this have been cleared, maybe in FLevelEditorViewportClient::DropObjectsAtCoordinates() when bCreateDropPreview is false?"

Steps to Reproduce

 

  1. In the Layers window, right-click and add a new empty layer.
  1. Add a cube to the level.
  1. Select the cube, right-click on the new layer, and add the cube to the layer.
  1. Click the visibility icon for the layer to hide it.
  1. Select the cube from the scene outliner and copy it to your clipboard.
  1. Delete the layer and the cube.
  1. Paste into the level.

Result: Hidden actor is pasted into the level with a visible layer and, after clicking 'See Contents' on the layer in the Layers window, you can toggle the visibility of the pasted actor with no effect.

Workaround: Toggling the visibility for the whole layer will correct the issue.

 

Have Comments or More Details?

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

3
Login to Vote

Won't Fix
ComponentTools
Affects Versions4.214.20.3
Fix Commit4468253
Main Commit4676940
CreatedOct 12, 2018
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue