Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Movable actors reset to (0, 0, 0) on load if its level has never been set visible #72

Open
rtorrisi opened this issue Aug 4, 2021 · 0 comments
Assignees
Labels
Bug Something isn't working To Be Reproduced Has not been reproduced

Comments

@rtorrisi
Copy link

rtorrisi commented Aug 4, 2021

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:

  1. Create a persistent level A
  2. Create a sublevel B
  3. Add a movable actor to be serialized in B
  4. Stream in B but set it not visible.
  5. Save
  6. Load, stream B and set it visible.
  7. 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

(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();
@rtorrisi rtorrisi added Bug Something isn't working To Be Reproduced Has not been reproduced labels Aug 4, 2021
@rtorrisi rtorrisi changed the title Actors reset to (0, 0, 0) on load if its level has never been set visible Movable actors reset to (0, 0, 0) on load if its level has never been set visible Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working To Be Reproduced Has not been reproduced
Projects
None yet
Development

No branches or pull requests

2 participants