Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(prefabs): fix disabling prefabs with non-alive components (follow-up #1577) #1578

Conversation

Indra-db
Copy link
Contributor

@Indra-db Indra-db commented Feb 15, 2025

PR #1577 should be merged first as it's based on it. Ran into a new issue where toggle-able components caused ecs_is_alive asserts when disabling a prefab. this also happens with pairs of (Enum, EnumVariant), etc

…prefabs

When a prefab type was added as a component of itself and subsequently disabled, the enabling/disabling code entered an infinite recursion. This commit introduces a check to detect self-references in disabled prefabs.
@Indra-db Indra-db changed the title fix(prefabs): disabling prefabs with toggle-able components (follow-up #1577) fix(prefabs): fix disabling prefabs with non-alive components (follow-up #1577) Feb 15, 2025
@Indra-db Indra-db closed this Feb 18, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant