Blueprint Actors do not respect Rotate to Surface Normal Rules; in Editor's Viewport Snapping Options

The surface normal rotation handling comes from UActorFactory, and in all the cases where items are being dragged in the viewport, it's handled in LevelEditorViewport.cpp using the UEditorEngine::FindActorFactoryForActorClass method, which always returns NULL for Blueprint classes.


Licensee proposed patch has been attached.

Steps to Reproduce
  1. Open Unreal Engine and Create a new blank Blueprint Project.
  2. Create a new Blueprint class based on a Static Mesh Actor "Bp_Test"
  3. Enable Surface Snapping and Rotate to Surface Normal in the Editor's viewport snapping options
  4. Drag the "Bp_Test" Actor Blueprint into a level which has geometry in it.

Result: it snaps to the surface, but doesn't rotate to the surface normal

*Expected: *To compare, drag a regular Static Mesh into the same level with the same settings - notice that this actor both snaps and rotates to align to the surface normal

Have Comments or More Details?

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

Login to Vote

Won't Fix
Affects Versions4.
CreatedAug 14, 2019
ResolvedAug 27, 2021
UpdatedAug 27, 2021