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

Portals - fix DYNAMIC particle systems #57546

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

lawnjelly
Copy link
Member

A regression had occurred whereby particle systems in DYNAMIC mode weren't added to the room correctly.
This PR recognise the case and bypasses the function to retrieve geometry, as retrieving the geometry is not necessary for DYNAMIC objects as they should not affect the room bound. Their AABB will be retrieved during gameplay rather than once off at level conversion.

Fixes #57528

Notes

  • Not sure when the regression came in, this was working originally, probably during a bug fix I didn't consider this case.
  • They will have been able to work already as GLOBAL or ROAMING, but DYNAMIC is the most efficient mode for particles that stay in the same room.

A regression had occurred whereby particle systems in DYNAMIC mode weren't added to the room correctly.
This PR recognise the case and bypasses the function to retrieve geometry, as retrieving the geometry is not necessary for DYNAMIC objects as they should not affect the room bound. Their AABB will be retrieved during gameplay rather than once off at level conversion.
@akien-mga akien-mga merged commit 821a1a1 into godotengine:3.x Feb 2, 2022
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.3.

@lawnjelly lawnjelly deleted the portals_fix_dynamic_particles branch February 3, 2022 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants