Skip to content

Commit

Permalink
Change flecs.core.Disabled to (OnInstantiate, Override)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Dec 4, 2024
1 parent 43b500e commit 57ebed1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion distr/flecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -4388,7 +4388,6 @@ void flecs_bootstrap(
/* Inherited components */
ecs_add_pair(world, EcsIsA, EcsOnInstantiate, EcsInherit);
ecs_add_pair(world, EcsDependsOn, EcsOnInstantiate, EcsInherit);
ecs_add_pair(world, EcsDisabled, EcsOnInstantiate, EcsInherit);

/* Run bootstrap functions for other parts of the code */
flecs_bootstrap_hierarchy(world);
Expand Down
1 change: 0 additions & 1 deletion src/bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,6 @@ void flecs_bootstrap(
/* Inherited components */
ecs_add_pair(world, EcsIsA, EcsOnInstantiate, EcsInherit);
ecs_add_pair(world, EcsDependsOn, EcsOnInstantiate, EcsInherit);
ecs_add_pair(world, EcsDisabled, EcsOnInstantiate, EcsInherit);

/* Run bootstrap functions for other parts of the code */
flecs_bootstrap_hierarchy(world);
Expand Down
1 change: 1 addition & 0 deletions test/query/src/Transitive.c
Original file line number Diff line number Diff line change
Expand Up @@ -5184,6 +5184,7 @@ void Transitive_isa_disabled(void) {

ecs_entity_t prefab = ecs_new_w_id(world, EcsDisabled);
ecs_entity_t inst = ecs_new_w_pair(world, EcsIsA, prefab);
ecs_remove_id(world, inst, EcsDisabled);

ecs_query_t *q = ecs_query(world, {
.terms = {{ ecs_pair(EcsIsA, prefab) }}
Expand Down

0 comments on commit 57ebed1

Please sign in to comment.