Open rtorrisi opened 3 years ago
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:
Actor tranform is reset to 0,0,0
Possible solution (already tested):
Replace this line
https://github.com/PipeRift/SaveExtension/blob/390033bc757f2b694c497e22c324dcac539bcd15/Source/SaveExtension/Private/Serialization/MTTask_SerializeActors.cpp#L79
(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();
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:
Actor tranform is reset to 0,0,0
Possible solution (already tested):
Replace this line
https://github.com/PipeRift/SaveExtension/blob/390033bc757f2b694c497e22c324dcac539bcd15/Source/SaveExtension/Private/Serialization/MTTask_SerializeActors.cpp#L79
(this implementation doesn't work due to world (used in GetTransform) beeing not valid if the level has never been streamed in.)
with