-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Union Relationship Ref to Wildcard (Edge Case) #765
Comments
Bit more context (before the discord thread expires): It looks like there is an issue with queries for union relationships, where the union relationship is resolved as a reference (from another entity, like a prefab or parent). The issue shows up as a query attempting to resolve a wildcard id on a reference, which fails. |
A related issue when a query term uses parent union: ECS_ENTITY(world, Movement, EcsUnion);
ECS_TAG(world, Walking);
ECS_TAG(world, Running);
ecs_query_t *q = ecs_query_init(world, &(ecs_query_desc_t){
.filter.terms = {{.id = ecs_pair(Movement, Running), .src.trav = EcsChildOf, .src.flags = EcsUp}}
});
ecs_entity_t e0 = ecs_new_entity(world, "e0");
ecs_add_pair(world, e0, Movement, Running);
ecs_entity_t e1 = ecs_new_entity(world, "e1");
ecs_add_pair(world, e1, EcsChildOf, e0); Gives: |
Describe the bug
Creating this as a bug so that it doesn't get forgotten. There is an issue with queries and union relationship enums. See chat for details...
To Reproduce
See discord discussion
The text was updated successfully, but these errors were encountered: