-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
BugSomething isn't workingSomething isn't workingTo Be ReproducedHas not been reproducedHas not been reproduced
Description
Saving actors in a level that has never been set to visible, result in a reset of Transform to (0, 0, 0) when loading back and set the level visible.
Steps to reproduce the behavior:
- Create a persistent level A
- Create a sublevel B
- Add a movable actor to be serialized in B
- Stream in B but set it not visible.
- Save
- Load, stream B and set it visible.
- Actor tranform is reset to 0,0,0
- Engine Version: 4.26.2
- Plugin Version: 1.4
- OS: Windows 10
Possible solution (already tested):
Replace this line
SaveExtension/Source/SaveExtension/Private/Serialization/MTTask_SerializeActors.cpp
Line 79 in 390033b
| Record.Transform = Actor->GetTransform(); |
(this implementation doesn't work due to world (used in GetTransform) beeing not valid if the level has never been streamed in.)
with
Record.Transform = Actor->GetRootComponent()->GetRelativeTransform();Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingTo Be ReproducedHas not been reproducedHas not been reproduced