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

Fix enabling NavigationRegion3D saved disabled #83365

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

Malcolmnixon
Copy link
Contributor

@Malcolmnixon Malcolmnixon commented Oct 15, 2023

This PR fixes issue #83364 by always registering the region when it enters the tree, and instead using region_set_enabled to control whether its enabled. The same logical changes have been applied to NavigationRegion2D.

This PR fixes issue godotengine#83364 by always registering the region when it enters the tree, and instead using region_set_enabled to control whether its enabled. The same logical changes have been applied to NavigationRegion2D.
@Malcolmnixon Malcolmnixon requested review from a team as code owners October 15, 2023 03:18
@Chaosus Chaosus added this to the 4.2 milestone Oct 15, 2023
@smix8
Copy link
Contributor

smix8 commented Oct 15, 2023

In the past a region was being removed entirely from the map when not enabled. These checks are leftovers from that time.

@akien-mga akien-mga merged commit cbfa941 into godotengine:master Oct 16, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

NavigationRegion3D saved "disabled" don't work when enabled in script
4 participants